Beispiel #1
0
        //****************************  Clean up Recources ************************************

        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_dbContext != null)
                {
                    _dbContext.Dispose();
                    _dbContext = null;
                }
            }
        }
Beispiel #2
0
 public LocalityRepository(olxDbContext dbcontext) : base(dbcontext)
 {
 }
Beispiel #3
0
 public CategoryRepository(olxDbContext dbcontext) : base(dbcontext)
 {
 }
Beispiel #4
0
 public BaseRepository(olxDbContext dbContext)
 {
     _dbContext = dbContext;
     _dbset     = _dbContext.Set <T>();
 }