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