Max
Max

Reputation: 41

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 the command line?

Upvotes: 4

Views: 932

Answers (1)

Devart
Devart

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

Related Questions