ProviderIncompatibleException with entity framework 4 ctp5 and oracle express
I encountered a ProviderIncompatibleException when I tried to connect on a Oracle express database with dotConnect for Oracle and entity framework 4 ctp5. I have Oracle Express 10g a开发者_开发问答nd I download the trial version for Oracle express today, so I have version number 6.0.86.0 of the dlls
Here's my config. Any idea how to solve the problem?
We have replied you at our forum here.
The code sample:
public class MyOracleContext : DbContext {
public DbSet<Product> Products { get; set; }
public DbSet<ProductCategory> ProductCategories { get; set; }
static MyOracleContext() {
System.Data.Entity.Database.DbDatabase.SetInitializer<MyOracleContext>(null);
}
protected override void OnModelCreating(ModelBuilder modelBuilder) {
base.OnModelCreating(modelBuilder);
modelBuilder.Conventions.Remove<System.Data.Entity.ModelConfiguration.Conventions.Edm.Db.ColumnTypeCasingConvention>();
}
}
精彩评论