Thoughts on MVC pattern and anonymous types ?

what is the recomendations for presentation of data using linq/dlinq ?

I love the anonymous type system where I can easily create a view for presentation.
however , since "var" is only allowed for local variables , not as return types of methods etc.
it is impossible to have a method that returns a list of anonymous type objects.

so in short , i cant have a controller that has a "GetOrdersForDisplay" kind of method unless the return type is named.

this will force us to have such presentation transformations inside the gui itself instead of separated from the gui.

for databinding purposes its easy to just return "object" and simply bind that list to a listbox/grid or whatever.

any thoughts?
alternatives?

//Roger

[787 byte] By [Roggan] at [2007-12-21]

Visual Studio Orcas

Site Classified