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