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