Click here to Skip to main content
15,893,266 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thought of the day Pin
megaadam8-Jun-16 5:37
professionalmegaadam8-Jun-16 5:37 
GeneralRe: Thought of the day Pin
Mark_Wallace8-Jun-16 10:05
Mark_Wallace8-Jun-16 10:05 
GeneralRe: Thought of the day Pin
Roger Wright8-Jun-16 19:30
professionalRoger Wright8-Jun-16 19:30 
GeneralAPOD Pin
R. Giskard Reventlov8-Jun-16 4:41
R. Giskard Reventlov8-Jun-16 4:41 
GeneralLINQ "let" Pin
Marc Clifton8-Jun-16 3:54
mvaMarc Clifton8-Jun-16 3:54 
GeneralRe: LINQ "let" Pin
Jacquers8-Jun-16 3:58
Jacquers8-Jun-16 3:58 
GeneralRe: LINQ "let" Pin
Pete O'Hanlon8-Jun-16 3:58
mvePete O'Hanlon8-Jun-16 3:58 
GeneralRe: LINQ "let" Pin
Marc Clifton8-Jun-16 7:49
mvaMarc Clifton8-Jun-16 7:49 
Pete O'Hanlon wrote:
So how have you been solving this in the past? Multiple queries chained together?


My Linq tends to be rather simple. Smile | :)

Pete O'Hanlon wrote:
Just wait until you start using "into[^]".


Though for reporting, yup, been there, done that:
var categoryRanks = (from gs in geekSkills
  where (gs.ProfileId == profile.Id)
  join s in skills on gs.SkillId equals s.Id
  select new { Level = gs.Level, CategoryId = s.CategoryId } into gss
  join c in categories on gss.CategoryId equals c.Id
  select new { Level = gss.Level, Name = c.Name } into gssc
  group gssc by new { gssc.Name, gssc.Level } into g
  select new SkillLevelBySkillByCategory() { 
    SkillLevel = g.Key.Level, 
    SkillLevelCount = g.Count(x => x.Level == g.Key.Level), 
    Name = g.Key.Name });

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: LINQ "let" Pin
James Curran9-Jun-16 4:14
James Curran9-Jun-16 4:14 
GeneralRe: LINQ "let" Pin
Marc Clifton11-Jun-16 14:20
mvaMarc Clifton11-Jun-16 14:20 
GeneralRe: LINQ "let" Pin
James Curran11-Jun-16 17:04
James Curran11-Jun-16 17:04 
GeneralRe: LINQ "let" Pin
Rob Philpott8-Jun-16 4:12
Rob Philpott8-Jun-16 4:12 
GeneralRe: LINQ "let" Pin
Richard Deeming8-Jun-16 4:32
mveRichard Deeming8-Jun-16 4:32 
GeneralRe: LINQ "let" Pin
OriginalGriff8-Jun-16 4:35
mveOriginalGriff8-Jun-16 4:35 
GeneralRe: LINQ "let" Pin
Rob Philpott8-Jun-16 4:51
Rob Philpott8-Jun-16 4:51 
GeneralRe: LINQ "let" Pin
Richard Deeming8-Jun-16 5:17
mveRichard Deeming8-Jun-16 5:17 
GeneralRe: LINQ "let" Pin
Rob Philpott8-Jun-16 7:37
Rob Philpott8-Jun-16 7:37 
GeneralRe: LINQ "let" Pin
Marc Clifton8-Jun-16 7:59
mvaMarc Clifton8-Jun-16 7:59 
GeneralRe: LINQ "let" Pin
Richard Deeming8-Jun-16 8:40
mveRichard Deeming8-Jun-16 8:40 
GeneralRe: LINQ "let" Pin
90823658-Jun-16 5:28
90823658-Jun-16 5:28 
GeneralRe: LINQ "let" Pin
Sander Rossel8-Jun-16 5:51
professionalSander Rossel8-Jun-16 5:51 
GeneralRe: LINQ "let" Pin
Nicholas Marty9-Jun-16 2:53
professionalNicholas Marty9-Jun-16 2:53 
GeneralRe: LINQ "let" Pin
Sander Rossel9-Jun-16 3:43
professionalSander Rossel9-Jun-16 3:43 
GeneralRe: LINQ "let" Pin
Nicholas Marty9-Jun-16 4:40
professionalNicholas Marty9-Jun-16 4:40 
GeneralRe: LINQ "let" Pin
James Curran9-Jun-16 4:18
James Curran9-Jun-16 4:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.