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