コード例 #1
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(ClockInDbContext dbContext)
 {
     context = dbContext;
 }
コード例 #2
0
 // create a constructor that takes the EmployeeDbContext object as a parameter
 // so that you can have access to the class in the framework(from the "startup.cs" file)
 public EmployeeController(ClockInDbContext dbContext)
 {
     context = dbContext;
 }
コード例 #3
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 TrailerController(ClockInDbContext dbContext)
        {
            context = dbContext;
        }