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

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -