Model generated in __MigrationHistory is different for different database names, always

Model generated in __MigrationHistory is different for different database names, always

Postby la2texas » Mon 23 Dec 2013 22:34

Doing some initial testing with dotConnect migrations in team environment, different databases, different branches, etc...

Setup: branch 1 and branch 2 identical
Branch 1 add-migration Initial
Update-Database

Merge branch 1 into branch 2
Update-database
Cannot update because there are model differences.

See this stack overflow post:
http://stackoverflow.com/questions/20751031/dotconnect-oracle-migrations-initial-migration-in-two-identical-branches-say?noredirect=1#comment31097517_20751031

I have decompressed the stored Model from the DB into its EDMX and in fact the Schema is stored - this will always result in "model" changes when switches databases even though model changes did not occur. I have set the following:

var config = Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig.Instance;
config.Workarounds.IgnoreDboSchemaName = true;
config.Workarounds.IgnoreSchemaName = true;

Are there any workarounds for this?
la2texas
 
Posts: 10
Joined: Wed 18 Dec 2013 05:56

Re: Model generated in __MigrationHistory is different for different database names, always

Postby Shalex » Tue 24 Dec 2013 14:34

Thank you for sharing solution.
Shalex
Devart Team
 
Posts: 7705
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle