Ejemplo n.º 1
0
        /// <summary>
        /// Add a ParameterProperty to the ParameterProperty list.
        /// </summary>
        /// <param name="property"></param>
        public void AddParameterProperty(ParameterProperty property)
        {
            // These mappings will replace any mappings that this map
            // had for any of the keys currently in the specified map.
            propertiesMap[property.PropertyName] = property;
            properties.Add(property);

            if (propertiesList.Contains(property) == false)
            {
                propertiesList.Add(property);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add a ParameterProperty to the ParameterProperty list.
        /// </summary>
        /// <param name="property"></param>
        public void AddParameterProperty(ParameterProperty property)
        {
            if (property.Direction == ParameterDirection.Output ||
                property.Direction == ParameterDirection.InputOutput)
            {
                HasOutputParameter = true;
            }

            // These mappings will replace any mappings that this map
            // had for any of the keys currently in the specified map.
            propertiesMap[property.PropertyName] = property;
            properties.Add(property);

            if (propertiesList.Contains(property) == false)
            {
                propertiesList.Add(property);
            }
        }