Beispiel #1
0
        public OASystemMigrationsDbContext CreateDbContext(string[] args)
        {
            OASystemEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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