Running this against our database we are getting an exception when running
var hasErrors = comparer.CompareEfWithDb(context);
Exception:
System.ArgumentException: An item with the same key has already been added. Key: Job
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at System.Linq.Enumerable.ToDictionary[TSource,TKey](List`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at TestSupport.EfSchemeCompare.Internal.Stage1Comparer.CompareModelToDatabase(DatabaseModel databaseModel)
at TestSupport.EfSchemeCompare.CompareEfSql.FinishRestOfCompare(String configOrConnectionString, DbContext[] dbContexts, IDesignTimeServices designTimeService)
at Gravity.EF.Test.DummyTestFixture.CompareViaContext()
After checking our database turns out we have two tables:
HangFire.Job (external table)
replication.Job (another external table)
Is there any way of ignoring some schemas? or specifying the default EF schema?
Any suggestion on handling these are much appreciated.
Running this against our database we are getting an exception when running
var hasErrors = comparer.CompareEfWithDb(context);
Exception:
After checking our database turns out we have two tables: HangFire.Job (external table) replication.Job (another external table)
Is there any way of ignoring some schemas? or specifying the default EF schema? Any suggestion on handling these are much appreciated.
Thanks for this amazing lib.