Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从命令行从 .EDMX 文件创建包含 SQL DDL(以创建数据库)的脚本?
我们不知道这种工具。但是,您可以编写自己的控制台应用程序,它将: 1. 创建一个 ObjectContext。 2. 从 .edmx 文件加载元数据。 3. 使用 CreateDatabaseScript() 方法生成 DDL 脚本。 4. 将此脚本保存到文件中。