LINQ to SQL Statements Select with a Where Clause

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

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

dataGridView1.DataSource = q;
}

No comments:

Post a Comment