public EmployeesRepository(TrailerOrderDbContext dbContext) { this.context = dbContext; }
// 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; }
// 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; }
public TrailerRepository(TrailerOrderDbContext dbContext) { this.context = dbContext; }
public DriverTractorHistoryRepository(TrailerOrderDbContext dbContext) { this.context = dbContext; }