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