예제 #1
0
        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);
        }
예제 #2
0
 public CityRepository(CityArrayContext context) : base(context)
 {
 }
 public ReviewRepositoryCashed(CityArrayContext context) : base(context)
 {
 }
예제 #4
0
 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)
 {
 }