LINQ in Action roller

Dynamic LinQ Anonymous Type Projection

Ok, I have a bit of a curly one here that I'm looking for a solution for. The problem is the need to offer multiple/customisable user views, which equate to subsets of an IQueryable set, including some related data. I have tried 2 approaches to tackle this so far: 1) Emit a new Dynamic Type representing the subset that would ordinarily be an anonymous type when hard-coded. 2) Generate multiple combinations of the fields into a massive switch statement based on the user view filter. The 'filter' is Read More...
Published Thursday, June 26, 2008 6:40 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication