/// <summary> /// Concrete repository constructor with customised DbContext. /// </summary> /// <param name="dbContext"> public FlightRepository(LowFareFlightsContext dbContext) : base(dbContext) { }
public int SaveChanges() => LowFareFlightsContext.SaveChanges();
public async Task <int> SaveChangesAsync() => await LowFareFlightsContext.SaveChangesAsync();
public UnitOfWork() { LowFareFlightsContext = new LowFareFlightsContext(); Flights = new FlightRepository(LowFareFlightsContext); }