public virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { context.Dispose(); } disposed = true; } }