I am in the process of writing a new web application. I am using ASP.NET MVC 3 with Entity Framework code first. The database is automatically created and everything looks good so far.
However, we already have an existing database that holds details of all our current users and I want to be able to retrieve data from this database table in my new project. Is this possible using EF Code First and if so, how would I go about this?
Thanks in advance.
Description
I have done the same a few months ago. You can map your Model to an existing Database.
Scott Guthrie has blogged about it. You can use the Enity Framework Power Tools to create your models from your existing Database.
More Information