开发者

How to create DDL from an EDMX file at the command line?

开发者 https://www.devze.com 2022-12-28 00:10 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号