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