开发者

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>(); 
  } 
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜