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