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