Exemplo n.º 1
0
 static void InitializeDatabase()
 {
     using (var ctx = new DataAccess.Context())
     {
         ctx.Database.Initialize(false);
     }
 }
        public ServicesController()
        {
            context = new DataAccess.Context();

            customerServices     = new CustomerServices();
            employeeServices     = new EmployeeServices();
            orderServices        = new OrderServices();
            orderDetailsServices = new OrderDetailsServices();
            productServices      = new ProductServices();
        }
Exemplo n.º 3
0
        public ServicesController()
        {
            this.context = new DataAccess.Context();

            this.customerServices     = new CustomerServices();
            this.employeeServices     = new EmployeeServices();
            this.orderServices        = new OrderServices();
            this.orderDetailsServices = new OrderDetailsServices();
            this.productServices      = new ProductServices();
        }