public override void PreInitialize() { if (!SkipDbContextRegistration) { Configuration.Modules.AbpEfCore().AddDbContext <WebWithAngularDbContext>(options => { if (options.ExistingConnection != null) { WebWithAngularDbContextConfigurer.Configure(options.DbContextOptions, options.ExistingConnection); } else { WebWithAngularDbContextConfigurer.Configure(options.DbContextOptions, options.ConnectionString); } }); } }