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