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

            PruebaDbContextConfigurer.Configure(builder, configuration.GetConnectionString(PruebaConsts.ConnectionStringName));

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