示例#1
0
 /// <summary>
 /// Performs a deep clone of a parameter mapping.
 /// </summary>
 /// <returns>A deep clone of current object.</returns>
 public object Clone()
 {
     ParameterMapping mapping = new ParameterMapping();
     mapping.InputParameter = (Parameter)this.InputParameter.Clone();
     mapping.InputParameterProperty = this.InputParameterProperty;
     mapping.OutputParameterProperty = this.OutputParameterProperty;
     return mapping;
 }
示例#2
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            ParameterMapping mapping = new ParameterMapping();

            mapping.InputParameter          = (Parameter)this.InputParameter.Clone();
            mapping.InputParameterProperty  = this.InputParameterProperty;
            mapping.OutputParameterProperty = this.OutputParameterProperty;
            return(mapping);
        }
示例#3
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            //ParameterMapping paramMapping = (ParameterMapping)this.MemberwiseClone();
            //return paramMapping;

            ParameterMapping mapping = new ParameterMapping();
            mapping.InputParameter = this.InputParameter;
            mapping.InputParameterProperty = this.InputParameterProperty;
            mapping.OutputParameterProperty = this.OutputParameterProperty;
            return mapping;
        }
示例#4
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            //ParameterMapping paramMapping = (ParameterMapping)this.MemberwiseClone();
            //return paramMapping;

            ParameterMapping mapping = new ParameterMapping();

            mapping.InputParameter          = this.InputParameter;
            mapping.InputParameterProperty  = this.InputParameterProperty;
            mapping.OutputParameterProperty = this.OutputParameterProperty;
            return(mapping);
        }
        private static string GetMapping(ParameterMapping mapping)
        {
            string inputPath = mapping.InputParameter.Name;
            if (mapping.InputParameterProperty != null)
            {
                inputPath += ".get" + CodeNamer.PascalCase(mapping.InputParameterProperty) + "()";
            }

            string outputPath = "";
            if (mapping.OutputParameterProperty != null)
            {
                outputPath += ".set" + CodeNamer.PascalCase(mapping.OutputParameterProperty);
                return string.Format(CultureInfo.InvariantCulture, "{0}({1})", outputPath, inputPath);
            }
            else
            {
                return string.Format(CultureInfo.InvariantCulture, "{0} = {1}", outputPath, inputPath);
            }
        }
示例#6
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            ParameterMapping paramMapping = (ParameterMapping)this.MemberwiseClone();

            return(paramMapping);
        }