Esempio n. 1
0
        /// <summary>
        /// 获取参数名
        /// </summary>
        private string GetParamName(object value, Operator @operator)
        {
            var result = $"{_dialect.GetPrefix()}_p_{_tag}_{_paramIndex++}";

            if (value != null)
            {
                return(result);
            }
            if (@operator == Operator.Equal || @operator == Operator.NotEqual)
            {
                return(null);
            }
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// 获取参数名
 /// </summary>
 /// <returns></returns>
 private string GetParamName()
 {
     return($"{_dialect.GetPrefix()}_p_{_tag}_{_paramIndex++}");
 }
Esempio n. 3
0
 /// <summary>
 /// 创建参数名
 /// </summary>
 public string GenerateName()
 {
     return($"{_dialect.GetPrefix()}_p_{_paramIndex++}");
 }