コード例 #1
0
        public void ReadParametersFrom(InstanceTemplate settings)
        {
            if (settings != null)
            {
                var querySettings = settings.Connection.Activity.Parameters
                                    .Where(i => i.Key == IdsHierarchy && i.Type == ParameterInfoType.Parameter && i.Value != null);

                foreach (var parameterInfo in querySettings)
                {
                    var parameter = ParameterValues.FirstOrDefault(p => p.Name == parameterInfo.Parameter);

                    if (parameter != null)
                    {
                        parameter.UserValue = parameterInfo.Value;
                    }
                }
            }
        }