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