This tutorial guides you through the process of creating simple application powered by LinqConnect technology and shows you how to use data binding in the WinForms applications. We use DataGridView component to display the data received from created by us LinqConnect context.
[C#]
CrmDemoContext.CrmDemoDataContext Context = new CrmDemoContext.CrmDemoDataContext();
[Visual Basic]
Dim Context As New CrmDemoContext.CrmDemoDataContext()
[C#]
var query = from it in Context.Companies
select it;
dataGridView1.DataSource = query;
[Visual Basic]
Dim query = from it in Context.Companies
select it
dataGridView1.DataSource = query
[C#]
Context.SubmitChanges();
[Visual Basic]
Context.SubmitChanges

Changes were applied to the database. Just click the Refresh button to see the changes in the data.
© 2010 - 2013 Devart. All rights reserved.