Пример #1
0
        public void Configure(
            IApplicationBuilder app,
            IWebHostEnvironment env,
            MeetupAppDbContext dbContext)
        {
            EnsureDatabaseIsCreated(dbContext);

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseMvcWithDefaultRoute();
        }
Пример #2
0
        public void Configure(
            IApplicationBuilder app,
            IWebHostEnvironment env,
            MeetupAppDbContext dbContext)
        {
            EnsureDatabaseIsCreated(dbContext);

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseMvcWithDefaultRoute();
            //app.UseSwagger();
            //app.UseSwaggerUI(c =>
            //    c.SwaggerEndpoint("/swagger/v1/swagger.json", "MeetupApp v1"));
        }
 public UserProfileRepository(MeetupAppDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #4
0
 public MeetupRepository(MeetupAppDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #5
0
 private void EnsureDatabaseIsCreated(MeetupAppDbContext dbContext)
 {
     dbContext.Database.Migrate();
     DatabaseSeed.Seed(dbContext);
 }
 public GetMeetupsListQueryHandler(MeetupAppDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #7
0
 public MeetupReadModelUpdater(MeetupAppDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #8
0
 public EfCoreUnitOfWork(MeetupAppDbContext dbContext)
 {
     _dbContext = dbContext;
 }