private void Dispose(bool disposing) { if (disposing) { if (dbContext != null) { dbContext.Dispose(); dbContext = null; } } }
public UnitOfWork(CatTocDiContext _dbContext) { dbContext = _dbContext; }
public Repository(CatTocDiContext _context) { context = _context; dbSet = context.Set <T>(); }