/// <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); }
/// <summary> /// 获取参数名 /// </summary> /// <returns></returns> private string GetParamName() { return($"{_dialect.GetPrefix()}_p_{_tag}_{_paramIndex++}"); }
/// <summary> /// 创建参数名 /// </summary> public string GenerateName() { return($"{_dialect.GetPrefix()}_p_{_paramIndex++}"); }