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