Reputation: 6132
I can create ab object in .NET 4, run a DataReader over a sproc result, and then bind the DataReader to the properties of a new object and then add it to a List. But that lacks some "cool factor" in 2011.... Does anyone know of a decent way to do that "better"? I am not looking to use Linq to SQL or Entity Framework, no GUIs necessary. Just a new/better way to simply bind TDS output to a collection of objects.
Thanks.
Upvotes: 1
Views: 422
Reputation: 4766
This question LINQ to map a datatable into a list has an answer which would allow you to add an extension method, letting you do this in a one-liner which is definitely 2011.
Upvotes: 1