Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogicFactory"/> class.
 /// </summary>
 public LogicFactory()
 {
     this.db            = new CarRentalDatabaseEntities();
     this.accountRepo   = new AccountRepository(this.db);
     this.carRepo       = new CarRepository(this.db);
     this.complaintRepo = new ComplaintRepository(this.db);
     this.rentRepo      = new RentRepository(this.db);
     this.licenseRepo   = new LicenseRepository(this.db);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountRepository"/> class.
 /// </summary>
 /// <param name="db">The database entities object.</param>
 public AccountRepository(CarRentalDatabaseEntities db)
 {
     this.db = db;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ComplaintRepository"/> class.
 /// </summary>
 /// <param name="db">The database entities object.</param>
 public ComplaintRepository(CarRentalDatabaseEntities db)
 {
     this.db = db;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LicenseRepository"/> class.
 /// </summary>
 /// <param name="db">The database entities object.</param>
 public LicenseRepository(CarRentalDatabaseEntities db)
 {
     this.db = db;
 }