How can I programmatically generate Entity Framework classes from a database and then automatically compile them?
I'm looking for a solution that takes a simple connection string and generates a C# library. Exactly what Visual Studio's entity designer does but programmatically.
You are looking for Entity Framework power tools.
With that you can create a code first database from a connectionstring (Reverse Engineer Code First ).
With Reverse Engineer Code First you get the code first classes + mapping classes. You can even modify the templates used for the process. All the information you need can be found in the above link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With