Search code examples
c#.netcode-generationfluent-migrator

Code Generation Templates of Migration Classes in FluentMigrator


Are there any code generation templates available for use with FluentMigrator to generate migration classes from SQL (T-SQL) statements?

Ideally I would like to take text that contains statements for creating tables, indexes, etc and generate a migration class with the Up and Down methods containing the equivalent of the original SQL statements.

I'm only concerned with solutions based on open source or free code generation tools.


Solution

  • I wrote an application that will read an existing database and then generate a FluentMigrator Migration Class with both Up and Down methods.

    http://pfsolutions-mi.com/Product/FluentMigratorClassGenerator