Answers for "entity framework c# distinct"

C#
3

C# .NET Core linq Distinct

var distinctUsers = allUsers
    .GroupBy(x => x.UserId)
    .Select(x => x.First())
    .ToList();
Posted by: Guest on June-30-2020
0

select distinct two columns entity framework c#

var data = TESTDB.Where(i => i.ALPHA == 1).Select(i => new {i.A, i.B, i.C}).Distinct();
Posted by: Guest on July-23-2020

Code answers related to "entity framework c# distinct"

C# Answers by Framework

Browse Popular Code Answers by Language