protected override void Dispose(bool disposing) { if (disposing) { if (_unitWork != null) { _unitWork.Dispose(); _unitWork = null; } } }
public Repository(IEntityframeworkContext unitWork) : base(unitWork) { _unitWork = (EntityframeworkContext)unitWork; }