Questions tagged [linq-group]

139 questions
-1
votes
2 answers

Nested select group by linq statement

I have spent days (maybe weeks) trying to resolve this issue. I have two tables in which I am trying to organize my data into the following hierarchy. Here is an example of what this should like:
    PageTitle
  • Category…
DevHead19
  • 11
  • 3
-2
votes
2 answers

C# arrary group by continuous integers

In C#, Given the following array of integers e.g. 100001 100002 100005 100006 100007 100009 100011 I want to produce a data structure holding the following values [0] => {Type= "Continuous", Count=2, Items = [100001, 100002]} [1] => {Type=…
puri
  • 1,829
  • 5
  • 23
  • 42
-3
votes
2 answers

LINQ: Group by months quarter

I would like to Group values by month quarter. Supposing I have the following month quarters: Month Range Quarter Name 7->9 Q1 10->12 Q2 1->3 Q3 4->6 Q4 I want my results in linq to be grouped by…
-3
votes
1 answer

Linq group + Join

I've read some of the other questions, but couldn't get ans answer from them. I'm a newbie in Linq. I have 3 tables. City (id, name) Specialty (id, name) Quota (id, cityId, specialtyId, qty) So, you have quotas for a specialty in a city. I'm trying…
lcguida
  • 3,787
  • 2
  • 33
  • 56
1 2 3
9
10