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