public void Dispose() { if (!_shareContext && context != null)//Don't dispose the context if it is shared { context.Dispose(); } }
protected override void Dispose(bool disposing) { db.Dispose(); base.Dispose(disposing); }
public void Dispose() { if (!_shareContext && context != null)//Don't dispose the context if it is shared { context.Dispose(); } }
protected override void Dispose(bool disposing) { db.Dispose(); base.Dispose(disposing); }