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.