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