How to create DDL from an EDMX file at the command line?
How do I create a script containing the SQL DDL (to create a database) from a .EDMX file from th开发者_开发技巧e command line?
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.
精彩评论