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