public SmartPowerMigrationsDbContext CreateDbContext(string[] args) { SmartPowerEfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <SmartPowerMigrationsDbContext>() .UseSqlServer(configuration.GetConnectionString("Default")); return(new SmartPowerMigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { SmartPowerEfCoreEntityExtensionMappings.Configure(); }