Example #1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_dbContext != null)
         {
             _dbContext.Dispose();
             _dbContext = null;
         }
     }
 }
Example #2
0
 public GenericRepository(TSIDataContext dataContext)
 {
     _dbContext = dataContext;
     _dbset     = _dbContext.Set <T>();
 }
Example #3
0
 public InstroductionRepository(TSIDataContext dbContext) : base(dbContext)
 {
 }
Example #4
0
 public UnitOfWork(TSIDataContext context)
 {
     _dbContext = context;
 }