Skip to main content

Posts

Showing posts with the label distinct rows using Linq to entity framework

distinct rows using Linq to entity framework

distinct rows using Linq to entity framework var distinct = base .Context.UserContracts                                                    .Where(x => x.Customer_ID == Customer_ID)                     .Select(s=>s.Contract_Name)                     .Distinct()                     .Count();          For more query, go to below link http://stackoverflow.com/questions/5035048/linq-to-entities-di...