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

            var configuration = BuildConfiguration();

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

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