コード例 #1
0
        public ExcelIOMigrationsDbContext CreateDbContext(string[] args)
        {
            ExcelIOEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new ExcelIOMigrationsDbContext(builder.Options));
        }
コード例 #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     ExcelIOEfCoreEntityExtensionMappings.Configure();
 }