Reputation: 41
How do I create a script containing the SQL DDL (to create a database) from a .EDMX file from the command line?
Upvotes: 4
Views: 932
Reputation: 121902
We are not aware about such tool. However, you can write your own console application that will:
1. Create an ObjectContext.
2. Load metadata from the .edmx file.
3. Generate DDL script using the CreateDatabaseScript() method.
4. Save this script to file.
Upvotes: 4