Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

group by ef core

var query = 
    from ep in dbContext.tbl_EntryPoint
    join e in dbContext.tbl_Entry on ep.EID equals e.EID
    join t in dbContext.tbl_Title on e.TID equals t.TID
    where e.OwnerID == user.UID
    group new { ep, e, t } by new { e.aID, e.bCode, e.Date, e.FCode } into g
    let r = g.OrderByDescending(x => x.e.ID).FirstOrDefault()
    select new
    {
        UID = r.e.OwnerID,
        TID = r.e.TID,
        Title = r.t.Title,
        EID = r.e.EID
    };
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# swap name in string 
Csharp :: dictionary to list c# 
Csharp :: c# close form 
Csharp :: c# verify in class exist in list 
Csharp :: unity get component in parent 
Csharp :: c# string slice 
Csharp :: c# get gridview DataKeyNames 
Csharp :: how to get unique list in c# 
Csharp :: c# wpf get clipboard text 
Csharp :: how to insert into a list c# 
Csharp :: c# clear an array 
Csharp :: Hello World Dotnet 
Csharp :: c# lists 
Csharp :: select random from enum c# 
Csharp :: c# debug writeline 
Csharp :: unity render to texture2d 
Csharp :: httpget query parameters c# 
Csharp :: c# type of string 
Csharp :: how to insert value to identity column using entity framwork 
Csharp :: on trigger unity 
Csharp :: rotate along normal unity 
Csharp :: razor concatonate inline 
Csharp :: c# linq list select 
Csharp :: string c# 
Csharp :: c# async constructor 
Csharp :: viewBag as a list 
Csharp :: preprocessors 
Csharp :: .net on vs code 
Csharp :: get index brushes properties c# 
Csharp :: c sharp teleporting 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =