public void Configure(IServerRoutingTable serverRoutingTable, RouteSettings routeSettings)
 {
     using (var context = new MusacaDbContext())
     {
         context.Database.EnsureCreated();
     }
 }
Beispiel #2
0
 public void Configure(IServerRoutingTable serverRoutingTable)
 {
     using (var db = new MusacaDbContext())
     {
         db.Database.EnsureCreated();
     }
 }
 public void Configure(IServerRoutingTable serverRoutingTable)
 {
     using (var context = new MusacaDbContext())
     {
         //context.Database.EnsureDeleted();
         context.Database.EnsureCreated();
     }
 }
 public UserService(MusacaDbContext context)
 {
     this.context = context;
 }
Beispiel #5
0
 public UserService(MusacaDbContext db, IOrderService orderService)
 {
     this.db           = db;
     this.orderService = orderService;
 }
Beispiel #6
0
 public OrderService(MusacaDbContext context)
 {
     this.musacaContext = context;
 }
 public OrdersService(MusacaDbContext context)
 {
     this.context = context;
 }
Beispiel #8
0
 public OrdersService(MusacaDbContext context, IProductsService productsService, IUsersService usersService)
 {
     this.context         = context;
     this.productsService = productsService;
     this.usersService    = usersService;
 }
Beispiel #9
0
 public UserService(MusacaDbContext context, IOrderService orderService)
 {
     this.musacaContext = context;
     this.orderService  = orderService;
 }
Beispiel #10
0
 public ProductService(MusacaDbContext context)
 {
     this.musacaContext = context;
 }
 public UsersService(MusacaDbContext dbContext)
 {
     this.context = dbContext;
 }
Beispiel #12
0
        public void Configure(IList <Route> routeTable)
        {
            var data = new MusacaDbContext();

            data.Database.Migrate();
        }
Beispiel #13
0
 public UserService(MusacaDbContext MusacaDbContext)
 {
     this.db = MusacaDbContext;
 }
Beispiel #14
0
 public ProductService(MusacaDbContext MusacaDbContext)
 {
     this.context = MusacaDbContext;
 }
 public ProductsService(MusacaDbContext context, IUsersService usersService)
 {
     this.context      = context;
     this.usersService = usersService;
 }
Beispiel #16
0
 public ProductsService(MusacaDbContext db)
 {
     this.db = db;
 }
 public UsersService(MusacaDbContext data)
 {
     this.data = data;
 }
Beispiel #18
0
 public OrderService(MusacaDbContext db)
 {
     this.db = db;
 }
 public UsersService(MusacaDbContext db)
 {
     this.db = db;
 }
 public OrderService(MusacaDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Beispiel #21
0
 public ProductsService(MusacaDbContext context)
 {
     this.context = context;
 }
Beispiel #22
0
 public ProductService(MusacaDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Beispiel #23
0
 public OrderService(MusacaDbContext musacaDbContext)
 {
     this.context = musacaDbContext;
 }
Beispiel #24
0
 public OrderService(MusacaDbContext dbContext, IProductService productService)
 {
     this.dbContext      = dbContext;
     this.productService = productService;
 }
 public ProductsService(MusacaDbContext data)
 {
     this.data = data;
 }