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