0

Oracle 용 dotConnect 및 엔티티 프레임 워크 4 ctp5를 사용하여 Oracle Express 데이터베이스에 연결하려고 시도했을 때 ProviderIncompatibleException이 발생했습니다. 나는 Oracle Express 10g를 가지고 있으며 오늘 Oracle Express 버전을 다운로드하기 때문에 버전 번호는 6.0.86.0입니다.엔티티 프레임 워크 4가있는 ProviderIncompatibleException ctp5 및 oracle express

여기가 제 설정입니다. 어떤 생각을 가지고 문제를 해결할 수 있을까요?

답변

0

우리는 우리의 포럼 here에서 당신을 대답했다.
코드 샘플 :
공용 클래스 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

문제가 I 다운로드 dotConnect의 버전과 관련 된 것으로 보인다. 그것은 오라클 6.00 익스프레스 dotConnect와 함께 작동하지 않았지만 오라클 6.00 Professional 시험판 dotConnect와 함께 작동 – Breach