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