This is linq-to-sql
I have a lot of different classes all doing the same query, but projecting the results slightly differently. Ideally I\'d like to b
IdeaBlade has a ProjectionSelector
class that you can use to abstract your projections. When you need to construct a projection query but you don't know the types involved at compile time, you can create an instance of the ProjectionSelector
class and pass in the type information at runtime.
The class, and sample code, can be found here:
Create dynamic "Select", "SelectMany" and "GroupBy" clauses
http://drc.ideablade.com/xwiki/bin/view/Documentation/dynamic-projection