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