public MyABPPractiseDbContext CreateDbContext(string[] args)
        {
            var builder       = new DbContextOptionsBuilder <MyABPPractiseDbContext>();
            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());

            MyABPPractiseDbContextConfigurer.Configure(builder, configuration.GetConnectionString(MyABPPractiseConsts.ConnectionStringName));

            return(new MyABPPractiseDbContext(builder.Options));
        }
 public override void PreInitialize()
 {
     if (!SkipDbContextRegistration)
     {
         Configuration.Modules.AbpEfCore().AddDbContext <MyABPPractiseDbContext>(options =>
         {
             if (options.ExistingConnection != null)
             {
                 MyABPPractiseDbContextConfigurer.Configure(options.DbContextOptions, options.ExistingConnection);
             }
             else
             {
                 MyABPPractiseDbContextConfigurer.Configure(options.DbContextOptions, options.ConnectionString);
             }
         });
     }
 }