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