Hi
I am trying to implement dotConnect for Oracle and EF MigrateDatabaseToLatestVersion.
I am using EF6, Oracle 11g and dotConnect for Oracle 9.2.187.
When using MigrateDatabaseToLatestVersion, every program runtime execution method of Configuration.Seed(), resulting in repeated insert data.
I am attaching simple project where the situation can be replayed.
http://pan.baidu.com/s/1hrK2I9Y
or
https://github.com/zipiii/MyDevart.EF6.Test
To run the project please modify connection string, create oracle db, create schema abp1 and run Update-Database migration command and run it.
Please help me!
My customer username is [email protected].
thx!
Is a bug for EF MigrateDatabaseToLatestVersion?
Re: Is a bug for EF MigrateDatabaseToLatestVersion?
Please useWhen using MigrateDatabaseToLatestVersion, every program runtime execution method of Configuration.Seed(), resulting in repeated insert data.
Code: Select all
context.Products.AddOrUpdate(...);
Code: Select all
context.Products.Add(...);