public void AssignParameterValues() { if (ControlParameters != null) { ControlParameters.Where(x => x.LinkedControl is IsValuable && (x.Parameter.Direction == ParameterDirection.InputOutput || x.Parameter.Direction == ParameterDirection.Output)).ToList().ForEach(p => ((IsValuable)p.LinkedControl).Value = p.Parameter.Value); } }
//public abstract void AssignOutputParameter(string ParamName, DbParameter pParam); public void AssignParameterValues() { if (ControlParameters != null) { ControlParameters.Where(x => x.LinkedControl is IsValuable).ToList().ForEach(p => { AddParameterValue(p.Parameter.ParameterName, ((IsValuable)p.LinkedControl).Value); }); } }
public virtual void AssignValuesParameters() { string _stage = "Assigning values to parameters"; try { ControlParameters.Where(x => x.LinkedControl is IsValuable && (x.Parameter.Direction == ParameterDirection.InputOutput || x.Parameter.Direction == ParameterDirection.Output)).ToList().ForEach(p => ((IsValuable)p.LinkedControl).Value = p.Parameter.Value); } catch (Exception ex) { throw new Exception($"[{this.GetType().Name}/{System.Reflection.MethodBase.GetCurrentMethod().Name}#{_stage}] {ex.Message}"); } }
public void AssignParameterValues() { string _stage = "Assigning values to control parameters"; try { if (ControlParameters != null) { ControlParameters.Where(x => x.LinkedControl is IsValuable).ToList().ForEach(p => { AddParameterValues(p.Parameter.ParameterName, ((IsValuable)p.LinkedControl).Value); }); } } catch (Exception ex) { throw new Exception($"[{this.GetType().Name}/{System.Reflection.MethodBase.GetCurrentMethod().Name}#{_stage}] {ex.Message}"); } }
public void AssignValuesParameters() { ControlParameters.Where(x => x.LinkedControl is IsValuable && (x.Parameter.Direction == ParameterDirection.InputOutput || x.Parameter.Direction == ParameterDirection.Output)).ToList().ForEach(p => AddParameterValue(p.Parameter.ParameterName, ((IsValuable)p.LinkedControl).Value)); }