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