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