Feeds:
Posts
Comments

Archive for the ‘LINQ’ Category

List<Nullable<int>> custIDs = (from l in lookUpList 
                               group l by l.CustID into g
                               select g.Key).ToList<Nullable<int>>();
var customers=from c in new Repository().GetCustomers()
              where custIDs.Contains(c.CustID)
              select c).ToList();
Advertisements

Read Full Post »

List<Nullable<int>> custIDs = (from l in lookUpList                                          
                              select l.CustID).ToList<Nullable<int>>();
 var customers =from c in new Repository().GetCustomers()                                                
                where custIDs.Contains(c.CustID)                                                
                select c).ToList();

Read Full Post »

%d bloggers like this: