Wednesday, May 5, 2010

Possible to assign a data type to an anonymous type's members in a linq query?

Programmer Question


If I have a linq query that creates the anonymous type below:



                    select new
{
lf.id,
lf.name,
lf.desc,
plf.childId
};


Is it possible to assign a specific type to one of the members? Specifically I would like to make lf.id a null-able int rather than an int...





Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails