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