0

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 and 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?

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Breach
  • 1,288
  • 1
  • 11
  • 25

1 Answers1

0

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>(); 
  } 
}
Devart
  • 119,203
  • 23
  • 166
  • 186
  • It seems that the problem was related to the version of dotConnect that I downloaded. It didnt work with dotConnect for Oracle 6.00 Express but it worked with dotConnect for Oracle 6.00 Professional Trial – Breach Jan 24 '11 at 19:53