Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="param"></param>
        public void AddExpressParam(IDataParameter param)
        {
            string paramKey = param.GetFieldName();

            if (_parameter.ContainsKey(paramKey))
            {
                _parameter[paramKey] = param;
            }
            else
            {
                _parameter.Add(paramKey, param);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 添加参数
        /// </summary>
        /// <param name="param"></param>
        public void AddParameter(IDataParameter param)
        {
            if (param == null)
            {
                return;
            }
            string paramKey = param.GetFieldName();

            if (_fieldList.ContainsKey(paramKey))
            {
                _fieldList[paramKey] = param;
            }
            else
            {
                _fieldList.Add(paramKey, param);
            }
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="parameter"></param>
        public void AddKey(IDataParameter parameter)
        {
            if (parameter == null)
            {
                return;
            }
            string paramKey = parameter.GetFieldName();

            if (_keyList.ContainsKey(paramKey))
            {
                _keyList[paramKey] = parameter;
            }
            else
            {
                _keyList.Add(paramKey, parameter);
            }
        }
Beispiel #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="isIdentity">key is auto increase</param>
        public void AddKey(IDataParameter parameter, bool isIdentity)
        {
            if (parameter == null)
            {
                return;
            }
            string paramKey = parameter.GetFieldName();

            if (_keyList.ContainsKey(paramKey))
            {
                _keyList[paramKey] = parameter;
            }
            else
            {
                _keyList.Add(paramKey, parameter);
            }
            if (isIdentity)
            {
                _increaseFields.Add(paramKey);
            }
        }
Beispiel #5
0
 /// <summary>
 /// 添加参数
 /// </summary>
 /// <param name="param"></param>
 public void AddParameter(IDataParameter param)
 {
     if (param == null)
     {
         return;
     }
     string paramKey = param.GetFieldName();
     if (_fieldList.ContainsKey(paramKey))
     {
         _fieldList[paramKey] = param;
     }
     else
     {
         _fieldList.Add(paramKey, param);
     }
 }
Beispiel #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parameter"></param>
 public void AddKey(IDataParameter parameter)
 {
     if (parameter == null)
     {
         return;
     }
     string paramKey = parameter.GetFieldName();
     if (_keyList.ContainsKey(paramKey))
     {
         _keyList[paramKey] = parameter;
     }
     else
     {
         _keyList.Add(paramKey, parameter);
     }
 }
Beispiel #7
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="param"></param>
 public void AddExpressParam(IDataParameter param)
 {
     string paramKey = param.GetFieldName();
     if (_parameter.ContainsKey(paramKey))
     {
         _parameter[paramKey] = param;
     }
     else
     {
         _parameter.Add(paramKey, param);
     }
 }
Beispiel #8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="param"></param>
 public void AddParam(IDataParameter param)
 {
     if (param != null)
     {
         string paramKey = param.GetFieldName();
         //todo 修正:多个@参数
         //if (!param.ParameterName.StartsWith(_preParamChar))
         //{
         //    param.ParameterName = _preParamChar + param.ParameterName;
         //}
         if (_parameter.ContainsKey(paramKey))
         {
             _parameter[paramKey] = param;
         }
         else
         {
             _parameter.Add(paramKey, param);
         }
     }
 }
Beispiel #9
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parameter"></param>
 public void AddKey(IDataParameter parameter)
 {
     if (parameter == null)
     {
         return;
     }
     string paramKey = parameter.GetFieldName();
     //todo 修正:多个@参数
     //if (!parameter.ParameterName.StartsWith(_preParamChar))
     //{
     //    parameter.ParameterName = _preParamChar + parameter.ParameterName;
     //}
     if (_keyList.ContainsKey(paramKey))
     {
         _keyList[paramKey] = parameter;
     }
     else
     {
         _keyList.Add(paramKey, parameter);
     }
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parameter"></param>
 /// <param name="isIdentity">key is auto increase</param>
 public void AddKey(IDataParameter parameter, bool isIdentity)
 {
     if (parameter == null)
     {
         return;
     }
     string paramKey = parameter.GetFieldName();
     if (_keyList.ContainsKey(paramKey))
     {
         _keyList[paramKey] = parameter;
     }
     else
     {
         _keyList.Add(paramKey, parameter);
     }
     if (isIdentity) _increaseFields.Add(paramKey);
 }