orm - How to Ensure Fluent NHibernate Mappings and Migrations are in sync? -
orm - How to Ensure Fluent NHibernate Mappings and Migrations are in sync? -
i utilize migrator dot net version database schema, , fluent nhibernate map models schema.
is there (read: automated) way compare schema generated running migrations schema generated nh schema export ensure table definitions, keys, indices etc in sync?
the thing can think of export both schemas, utilize unknown (answer if know one!) library script them out, compare script strings.
is there improve way?
edit: clarify, verify not tables, columns, , column types, indices , foreign keys.
there schema validator in nhibernate:
schemavalidator validator = new schemavalidator(configuration); validator.validate(); nhibernate orm fluent-nhibernate database-migration
Comments
Post a Comment