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

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