Beispiel #1
0
        public AuthDbContext CreateDbContext(string[] args)
        {
            var builder       = new DbContextOptionsBuilder <AuthDbContext>();
            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());

            IdentityServerDemoDbContextConfigurer.Configure(builder, WiLSoftConsts.ConnectionStringName);

            return(new AuthDbContext(builder.Options));
        }
 public override void PreInitialize()
 {
     if (!SkipDbContextRegistration)
     {
         Configuration.Modules.AbpEfCore().AddDbContext <AuthDbContext>(configuration =>
         {
             IdentityServerDemoDbContextConfigurer.Configure(configuration.DbContextOptions, configuration.ConnectionString);
         });
     }
 }