2

I have a huge pre-existing database that I'd like to bring under version control using Migrator.NET for migration scripts and I don't like keeping the MDF file around just for the existing schema.

How can I generate an initial migration script (Migration class) for Migrator.NET from the existing schema that I can use to build the schema from scratch and use incremental builds onwards?

1 Answer 1

1

According to this link http://code.google.com/p/migratordotnet/wiki/WritingMigrations you can do this:

Migrator.Console.exe SqlServer "Server=localhost\SQLEXPRESS;Database=DB;Trusted_Connection?=True" MyMigrations.dll -dump "c:\temp\dump.cs"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.