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