public ISDbContext CreateDbContext(string[] args)
        {
            var builder       = new DbContextOptionsBuilder <ISDbContext>();
            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder(), addUserSecrets: true);

            ISDbContextConfigurer.Configure(builder, configuration.GetConnectionString(ISConsts.ConnectionStringName));

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