public AbpToExcelDbContext CreateDbContext(string[] args)
        {
            AbpToExcelEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <AbpToExcelDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));

            return(new AbpToExcelDbContext(builder.Options));
        }
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     AbpToExcelEfCoreEntityExtensionMappings.Configure();
 }