Horje
how to use distinct in linq query in c# Code Example
C# .NET Core linq Distinct
var distinctUsers = allUsers
    .GroupBy(x => x.UserId)
    .Select(x => x.First())
    .ToList();
how to use distinct in linq query in c#
var distValues = objList.Select(o=>o.typeId).Distinct().ToList();
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 distinct
var uniquePeople = from p in people
                   group p by new {p.ID} //or group by new {p.ID, p.Name, p.Whatever}
                   into mygroup
                   select mygroup.FirstOrDefault();




Csharp

Related
how to get key value from json object in c# Code Example how to get key value from json object in c# Code Example
how to make a enum list in c# Code Example how to make a enum list in c# Code Example
how to convert float to int in c# unity Code Example how to convert float to int in c# unity Code Example
how get query from url in laravel Code Example how get query from url in laravel Code Example
exit button unity code Code Example exit button unity code Code Example

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