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