This is a code snippet that worked for me
Code: Select all
public class MyOracleContext : DbContext {
public DbSet Products { get; set; }
public DbSet ProductCategories { get; set; }
static MyOracleContext() {
System.Data.Entity.Database.DbDatabase.SetInitializer(null);
}
protected override void OnModelCreating(ModelBuilder modelBuilder) {
base.OnModelCreating(modelBuilder);
modelBuilder.Conventions.Remove();
}
}
My connection string in app.config had the following structure:
The solution for the problem of "dbo" schema was discussed
here.
P.S. I have deleted your duplicate post.