Horje
linq select distinct Code Example
c# linq select only unique values from list
var uniq = allvalues.GroupBy(x => x.Id).Select(y=>y.First()).Distinct();
how to use distinct in linq query in c#
var distValues = objList.Select(o=>o.typeId).Distinct().ToList();
c# linq select only unique values from list
var uniqueCategories =  repository.GetAllProducts()
                                  .Select(p=>p.Category)
                                  .Distinct();
query DISTINCT
SELECT DISTINCT Column_name FROM table_name;
select distinct linq mvc
public static IQueryable<ProdType> GetDistinctProdType(
    this IQueryable<ProdInfo> query,
    int categoryId)
{
    return (from p in query
            where p.CatID == categoryId
            select p.Type).Distinct();
}
linq select distinct
var _dbLogList = (from d in _context.pu_Synchronize_Log
                              join cd in _context.pu_Synchronize_Child_Log
                              on d.Synchronize_Log_Id equals cd.Synchronize_Log_Id
                              where cd.Mobile_Device_Id == preference.DId && cd.Synchronize_Status == "OPEN"
                             && !d.Is_Deleted && !cd.Is_Deleted
                             select new
                             {
                                 d.Service_Name,
                            }).Distinct().ToList();




Csharp

Related
can you use unity for ftee Code Example can you use unity for ftee Code Example
parse error message: could not create type webservice.webservice asp .net Code Example parse error message: could not create type webservice.webservice asp .net Code Example
monogame delta Code Example monogame delta Code Example
unity move camera to player fluent Code Example unity move camera to player fluent Code Example
c# windows forms rtc Code Example c# windows forms rtc Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9