public EmployeesRepository(TrailerOrderDbContext dbContext)
 {
     this.context = dbContext;
 }
Exemplo n.º 2
0
        // create a constructor that takes the TrailerDbContext object as a parameter
        // so that you can have access to the class in the framework(from the "startup.cs" file)

        public CustomerController(TrailerOrderDbContext dbContext)
        {
            this.context = dbContext;
        }
Exemplo n.º 3
0
 // create a constructor that takes the OrderDbContext object as a parameter
 // so that you can have access to the class in the framework(from the "startup.cs" file)
 public OrderController(TrailerOrderDbContext dbContext)
 {
     context = dbContext;
 }
Exemplo n.º 4
0
 public TrailerRepository(TrailerOrderDbContext dbContext)
 {
     this.context = dbContext;
 }
 public DriverTractorHistoryRepository(TrailerOrderDbContext dbContext)
 {
     this.context = dbContext;
 }