protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public ElementViewModel() { Elements = dbElementContext.Elements.ToList(); dbElementContext.Dispose(); }