DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
return last row if all other condition fails in linq c#
Mains.GroupBy(l => l.ContactID) .Select(g=>g.OrderByDescending(c=>c.ID).FirstOrDefault()) .ToList()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#return
#row
#condition
#fails
#linq
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit