1//dx is a data context
2//oSelectedCustomers is an array of Customer objects from the data context
3
4private void SelectCustomers()
5 {
6 oSelectedCustomers = (from c in dx.Customers
7 where (!(bool)c.IsDeleted)
8 orderby c.CustomerName
9 select c).ToArray();
10 }