Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

transalations from sql to Linq count and group by

var query = from s in Stock 
            group s by new {s.Id, s.SupId, s.Text, s.ExternalId} into g
            select new {g.Key.Id, g.Key.SupId, g.Key.Text, g.Key.ExternalId, Count = g.Count()};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #transalations #sql #Linq #count #group
ADD COMMENT
Topic
Name
8+7 =