MigrationScriptGenerator class
ERD family — class
Generates forward and rollback migration scripts from a SchemaComparisonResult. Dialect-aware DDL for SQL Server, PostgreSQL, MySQL, Oracle, SQLite, and ANSI.
Members
| Member | Kind | Description |
|---|---|---|
string GenerateForward(SchemaComparisonResult diff, DDLImporter.SQLDialect dialect = DDLImporter.SQLDialect.ANSI) | Method | Generates the script that migrates the source schema to the target schema. |
string GenerateRollback(SchemaComparisonResult diff, DDLImporter.SQLDialect dialect = DDLImporter.SQLDialect.ANSI) | Method | Generates the script that reverses GenerateForward (target -> source). |