Example #1
0
        /// <summary>
        /// 根据值获取参数的方法
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        protected override ValueTuple <string, DbParameterInfo> GetParameter(object value)
        {
            string parameterName = $"{SqlQueryUtil.GetSign(DatabaseType)}{_paramertNamePrefix}Parameter_{_currentParamIndex.ToString()}";

            _currentParamIndex++;
            return(ValueTuple.Create(parameterName, new DbParameterInfo
            {
                Value = value,
                ParameterName = parameterName
            }));
        }