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