August 12, 2008
[Geeky Snort]

I think I'm beginning to get the hang of this whole lambda thing. I think this will actually work! Well, it compiles at any rate:

List<RegistrationBatch> rbl = rbl.Where(x => x.Registrations.Where (y => y.RegistrationTypeUsed.MyClass == registrationType.RegClass.regular).Count() > 0).ToList();

It gives me all the registration batches which contain "regular" registrations. Yeah, I can do this in a heartbeat with a sql string, but that tends to net me unexpected behavior that doesn't show up until runtime, and won't let me use all my handy enums besides.

Wrong Wrong Wrong! comments in 3... 2... 1...

It's my blog, I'll write what I want to!

Posted by scott at August 12, 2008 02:52 PM

eMail this entry!
Comments

Dude, you missed a period in there.

Posted by: DensityDuck on August 12, 2008 03:54 PM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?