public EmployeesRepository(TrailerOrderDbContext dbContext)
 {
     this.context = dbContext;
 }
예제 #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;
        }
예제 #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;
 }
예제 #4
0
 public TrailerRepository(TrailerOrderDbContext dbContext)
 {
     this.context = dbContext;
 }
 public DriverTractorHistoryRepository(TrailerOrderDbContext dbContext)
 {
     this.context = dbContext;
 }