DataConnector offers everything from wide range of data connection techniques using ADO.NET provider for Kintone. This documentation helps you get started with C1.DataConnector control which gives an idea about different ways of data connection and operations with Kintone.
This quick start will guide you through the steps of using DataConnector in a console application. Complete the steps given below to see how DataConnector works.
Follow the steps provided below to learn and implement data retrieval using ADO.NET provider for Kintone.
C# |
Copy Code
|
---|---|
const string Username = "***********"; const string Password = "************"; const string Url = "https://xg0w2.kintone.com"; |
C# |
Copy Code
|
---|---|
string kintoneConnection = string.Format("Username={0};Password={1};Url={2}", Username, Password, Url); C1KintoneConnection conn = new C1KintoneConnection(kintoneConnection); C1KintoneCommand comm = new C1KintoneCommand(conn); comm.CommandText = "Select * from Products"; conn.Open(); using (C1KintoneDataAdapter a = new C1KintoneDataAdapter(comm)) { //Filling Data Table with the help of adapter DataTable t = new DataTable(); a.Fill(t); //Printing the fetched table data on console foreach (DataRow dataRow in t.Rows) { foreach (var item in dataRow.ItemArray) { Console.Write(item + " - "); } Console.WriteLine(); } } |