How can I programmatically generate Entity Framework classes from a database?

How can I programmatically generate Entity Framework classes from a database and then automatically compile them?

I am looking for a solution that takes a simple connection string and generates a C # library. Exactly what the Visual Studio Object Developer does, but programmatically.

+7
c # entity-framework
source share
1 answer

You are looking for tools for the Entity Framework .

With this, you can create the first code database from the connection string (first reverse engineer code).

With reverse engineer code First you get the first class classes + matching classes. You can even change the templates used for the process. All necessary information is contained in the link above.

+5
source share

All Articles