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