I have a small to medium sized project to work on and I wanted to use the new MVC 3 and Razor but unfortunately I will need to hit a mssql 2000 as well as an ms FoxPro 8 database.
Maybe I am stuck using ADO.Net typed data sets and webforms? Whats the best/easiest way to get type data sets into List or even just make them enumerable so I can use foreach etc for output?
Would it be better to map each data set row to a POCO?
The datastore you are using has nothing to do with the frontend application. You could perfectly fine use ASP.NET MVC 3 with Razor as frontend and abstract the data access layer in a repository. In the implementation of this repository you could use ADO.NET with data readers that return strongly typed model objects, Forget about the legacy DataSets. You could use an ORM such as NHibernate to simplify the conversion between SQL queries and objects. As far as MVC views are concerned you should use view models which are specific to each view instead of your model objects coming from the repository. To map between different object types you may take a look at AutoMapper.