Search This Blog

simple LINQ to SQL statement

public void SimpleQuery()
{
DataClasses1DataContext dc = new DataClasses1DataContext();

var q =
from a in dc.GetTable<Order>()
select a;

dataGridView1.DataSource = q;
}