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