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