예제 #1
0
        // 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();
            }
        }
예제 #2
0
 public ClientDrinkRepository(KenoContext context) : base(context)
 {
     this.context = context;
 }
예제 #3
0
 public KenoService(KenoContext context)
 {
     uow = new UnitOfWork(context);
 }
예제 #4
0
 public IncidentRepository(KenoContext context) : base(context)
 {
     this.context = context;
 }
예제 #5
0
 public Repository(KenoContext context)
 {
     this.context = context;
     dbSet        = context.Set <TEntity>();
 }
예제 #6
0
 public UserRepository(KenoContext context) : base(context)
 {
     this.context = context;
 }
예제 #7
0
 public MessageRepository(KenoContext context) : base(context)
 {
     this.context = context;
 }
예제 #8
0
 public ClientInformationRepository(KenoContext context) : base(context)
 {
     this.context = context;
 }
예제 #9
0
 public UnitOfWork(KenoContext kenoContext)
 {
     this.context = new KenoContext();
     context      = kenoContext;
     InitializeRepositories();
 }
예제 #10
0
 public ClientConditionRepository(KenoContext context) : base(context)
 {
     this.context = context;
 }