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