// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc(); using (var db = new KenoContext()) { db.Database.EnsureCreated(); db.Database.Migrate(); } }
public ClientDrinkRepository(KenoContext context) : base(context) { this.context = context; }
public KenoService(KenoContext context) { uow = new UnitOfWork(context); }
public IncidentRepository(KenoContext context) : base(context) { this.context = context; }
public Repository(KenoContext context) { this.context = context; dbSet = context.Set <TEntity>(); }
public UserRepository(KenoContext context) : base(context) { this.context = context; }
public MessageRepository(KenoContext context) : base(context) { this.context = context; }
public ClientInformationRepository(KenoContext context) : base(context) { this.context = context; }
public UnitOfWork(KenoContext kenoContext) { this.context = new KenoContext(); context = kenoContext; InitializeRepositories(); }
public ClientConditionRepository(KenoContext context) : base(context) { this.context = context; }