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