Geeks With Blogs
Title Of Blog September 2011 Entries
Entity Framework 4 - When you can use Parameterized Constructors in Select
Skip to the bottom if want the quick answer ;-) Just a quick note on something I ran into today... I've taken to utilizing a View Model in which objects are created on a 1 to 1 basis to hold entities supplying data to the View/UI. As such, I modified my existing linq queries such that the View Model objects are created in the select portion of the query resulting in an enumerable list I can supply to the View. Below is an example: IQueryable<sessionfoo> fooquery = ((IEnumerable<sessionfoo... ......

Posted On Thursday, September 22, 2011 3:09 PM

Copyright © Jake Rutherford | Powered by: