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