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