I have a simple problem which I think must have a simple answer... well maybe. :)
I'm writing a MVC3 application. I have an existing database from the previous version of the application, so it's a data driven app. Instead of using EF to access the data and LINQ expressions, I'd prefer to use stored procedures / SQL commands.
What I want to do is run a SQL command, which returns a datatable object and then map this to a model which contains exactly the same fields. Sadly, I'm doing this by hand right now, iterating through the data rows. There must be some better approach?
Thanks for any tips... and for not sniggering at my newbie question.