public Startup(IHostingEnvironment env, IConfiguration configuration) { Configuration = configuration; //var conex = Configuration.GetConnectionString("DefaultPostgresConnection"); DbContextDataInitializer.Initialize(new PostgressDbContext(Configuration)); }
public Startup(IHostingEnvironment env, IConfiguration configuration) { Configuration = configuration; DbContextDataInitializer.Initialize(new SqlServerDbContext(Configuration)); }
public Startup(IHostingEnvironment env, IConfiguration configuration) { Configuration = configuration; DbContextDataInitializer.Initialize(new InMemoryDbContext()); }