Entity framework with linq in asp.net mvc 5

asp.net-mvc-5 entity-framework entity-framework-6 linq linq-to-sql

Popular Answer

Do this:

var groupedList = db.Imageuploads
    .GroupBy(u => u.guid)
    .Select(g=> g.ToList())
    .ToList();

Hope this is useful.

0
9/12/2018 4:49:39 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow