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