public void Dispose() { if (shareContext && (shoematicContext != null)) { shoematicContext.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }