从现有模式生成初始数据库迁移脚本

我有一个庞大的预先存在的数据库,我想在版本控制下使用Migrator.NET进行迁移脚本,我不喜欢仅为现有模式保留MDF文件。 如何从现有模式为Migrator.NET生成初始迁移脚本(
Migration
类),我可以使用该模式从头开始构建模式并使用增量构建?     
已邀请:
根据此链接http://code.google.com/p/migratordotnet/wiki/WritingMigrations,您可以执行以下操作:
Migrator.Console.exe SqlServer "Server=localhostSQLEXPRESS;Database=DB;Trusted_Connection?=True" MyMigrations.dll -dump "c:tempdump.cs"
    

要回复问题请先登录注册