コード例 #1
0
 public CustomersController(BikeRentalDbContext context)
 {
     _context = context;
 }
コード例 #2
0
 public Repository(BikeRentalDbContext context)
 {
     _context  = context;
     _entities = _context.Set <T>();
 }
 public RentalsController(BikeRentalDbContext context, ICostCalculator calculator)
 {
     _context    = context;
     _calculator = calculator;
 }
コード例 #4
0
 public BikesController(BikeRentalDbContext context)
 {
     _context = context;
 }
 public RentalsController(BikeRentalDbContext context, ICalculation calculation)
 {
     _context         = context;
     this.calculation = calculation;
 }