publicoverridevoidConfigureServices(ServiceConfigurationContext context){
context.Services.AddAbpDbContext<BookStoreDbContext>(options =>{/* Remove "includeAllEntities: true" to create
* default repositories only for aggregate roots */
options.AddDefaultRepositories(includeAllEntities:true);});Configure<AbpDbContextOptions>(options =>{/* The main point to change your DBMS.
* See also BookStoreMigrationsDbContextFactory for EF Core tooling. *///options.UseOracle();//改这里
options.UseOracle( b => b.UseOracleSQLCompatibility("11"));});}
protectedoverridevoidOnModelCreating(ModelBuilder builder){base.OnModelCreating(builder);/* Include modules to your migration db context *///加这一句即可
builder.HasAnnotation("Relational:MaxIdentifierLength",30);......}