public RepoCashed() { var logger = LogManager.GetLogger(this.GetType()); //_context.Database.Log = Console.WriteLine; logger.Debug("Repo class was created"); _context = new CityArrayContext(); People = new PersonRepositoryCashed(_context); Cities = new CityRepositoryCashed(_context); Countries = new CountryRepositoryCashed(_context); Reviews = new ReviewRepositoryCashed(_context); Wishes = new WishesRepositoryCashed(_context); }
public CityRepository(CityArrayContext context) : base(context) { }
public ReviewRepositoryCashed(CityArrayContext context) : base(context) { }
public BaseRepositoryCashed(CityArrayContext context) { Logger = LogManager.GetLogger(this.GetType()); Context = context; DbSet = Context.Set <T>(); }
public WishesRepositoryCashed(CityArrayContext context) : base(context) { }
public PersonRepository(CityArrayContext context) : base(context) { }
public CountryRepositoryCashed(CityArrayContext context) : base(context) { }