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