Beispiel #1
0
        public Startup(IHostingEnvironment env, IConfiguration configuration)
        {
            Configuration = configuration;

            //var conex = Configuration.GetConnectionString("DefaultPostgresConnection");

            DbContextDataInitializer.Initialize(new PostgressDbContext(Configuration));
        }
Beispiel #2
0
        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());
        }