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...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers