Ejemplo n.º 1
0
        /// <summary>
        /// Used Internally to merge parameters returned by the provider back into the original collection.
        /// </summary>
        /// <param name="parms"></param>
        internal void Merge(tgParameters parms)
        {
            foreach (tgParameter esParam in parms)
            {
                tgParameter esOriginalParam = this.hash[esParam.Name];

                esOriginalParam.Value = esParam.Value;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Use this method to fetch a given tgParameter by name. There should be no prefix such as @, ? or : in the name.
        /// </summary>
        /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param>
        /// <returns>The desired parameter or null/Nothing if not found</returns>
        public tgParameter this[string name]
        {
            get
            {
                tgParameter param = null;

                if (this.hash.ContainsKey(name))
                {
                    param = this.hash[name];
                }

                return(param);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parameter">An already created tgParameter. This is mostly used internally.</param>
 /// <returns>The same parameter passed in</returns>
 public tgParameter Add(tgParameter parameter)
 {
     this.parameters.Add(parameter);
     this.hash[parameter.Name] = parameter;
     return(parameter);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parameter">An already created tgParameter. This is mostly used internally.</param>
 /// <returns>The same parameter passed in</returns>
 public tgParameter Add(tgParameter parameter)
 {
     this.parameters.Add(parameter);
     this.hash[parameter.Name] = parameter;
     return parameter;
 }