public virtual void Dispose(bool disposing) { if (!this._disposed) { if (disposing) { try { if (this._entityContext != null) { this._entityContext.Dispose(); this._entityContext = null; } } catch (ObjectDisposedException) { } } this._disposed = true; } }
public UnitOfWork(IEntityContextAsync entityContext) { this._entityContext = entityContext; }
public UnitOfWork() { this._entityContext = ApplicationDbContext.EntityContext(); }