コード例 #1
0
 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);
     }
 }
コード例 #2
0
        //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);
                });
            }
        }
コード例 #3
0
        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}");
            }
        }
コード例 #4
0
        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}");
            }
        }
コード例 #5
0
 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));
 }