public SymptomIndicator GetObjectByKey(object keypair) { if (this.Contains(GetKey(keypair)) == false) { return(null); } SymptomIndicator ob = this[GetKey(keypair)]; return((SymptomIndicator)ob); }
public SymptomIndicator GetObjectByKey(long k_SxIndicatorID) { if (this.Contains(GetKey(k_SxIndicatorID)) == false) { return(null); } SymptomIndicator ob = this[GetKey(k_SxIndicatorID)]; return((SymptomIndicator)ob); }
public SymptomIndicator GetObjectByKey(KeyValuePair <string, long> keypair) { if (this.Contains(keypair) == false) { return(null); } SymptomIndicator ob = this[keypair]; return((SymptomIndicator)ob); }
public bool ChangeItem(KeyValuePair <string, long> keypair, SymptomIndicator item) { SymptomIndicator orig = this.GetObjectByKey(keypair); if (orig != null) { int index = this.IndexOf(orig); this.SetItem(index, item); return(true); } return(false); }
public SymptomIndicator GetObjectByKey(long k_SxIndicatorID, LV.Core.DAL.Base.IRepository repository) { if (this.Contains(GetKey(k_SxIndicatorID)) == false) { SymptomIndicator ob = repository.GetQuery <SymptomIndicator>().FirstOrDefault(o => o.SxIndicatorID == k_SxIndicatorID); if (ob != null) { this.Add(ob); } return(ob); } SymptomIndicator obj = this[GetKey(k_SxIndicatorID)]; return((SymptomIndicator)obj); }
public bool DeleteObject(SymptomIndicator item, LV.Core.DAL.Base.IRepository repository) { repository.Update(item); return(true); }
public bool AddObject(SymptomIndicator item, LV.Core.DAL.Base.IRepository repository) { repository.Add(item); return(true); }
protected override KeyValuePair <string, long> GetKeyForItem(SymptomIndicator item) { return(item.Key); }