General information
Category:
The Mere Mortals .NET Framework
Environment versions
Network:
Windows 2008 Server
>I think the problem is when I add new { ...}, I am converting the LINQ to an anonymous type and they cannot be returned or are not meant to be returned. One can analyze the results of this anonymous query in the method itself with no problems.
>Thanks for your feedback.
If the resulting collection does not need to be attached to the context then you could just define a simple class and create instances of that rather than an anonymous type. If the results *do* need to be EntityObjects then the simplest approach is to create an additional entityset in the edmx designer - just copy and paste the existing item and remove all the unwanted fields from the copy
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only