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