public void Dispose(bool disposing) { if (disposing) { if (this._context != null) { this._context.Dispose(); this._context = null; } } }
public UnitOfWork(FrameworkThreeContext context) { this._context = context; }
public GenericRepository(IUnitOfWork unitOfWork) { _context = unitOfWork.DbContext; }