예제 #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;
            }
        }
예제 #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);
            }
        }
예제 #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);
 }
예제 #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;
 }