Пример #1
0
 /// <summary>
 /// 将一个数组当作参数值列表添加到参数化查询构建器中
 /// </summary>
 /// <param name="builder">参数化查询构建器</param>
 /// <param name="array">参数值列表</param>
 /// <param name="separator">分隔参数值的分隔符</param>
 public static void AppendValueList(this IParameterizedQueryBuilder builder, Array array, string separator)
 {
     builder.AppendValue(ValueList.Create(array, separator));
 }
Пример #2
0
 /// <summary>
 /// 将数组转换为参数值列表对象
 /// </summary>
 /// <param name="list">要转换的值列表</param>
 /// <returns>参数列表对象</returns>
 public static ValueList AsValueList <T>(this IEnumerable <T> list)
 {
     return(ValueList.Create(list));
 }
Пример #3
0
 /// <summary>
 /// 将数组转换为参数值列表对象
 /// </summary>
 /// <param name="list">要转换的值列表</param>
 /// <param name="separator">参数列表分隔符</param>
 /// <returns>参数列表对象</returns>
 public static ValueList AsValueList <T>(this IEnumerable <T> list, string separator)
 {
     return(ValueList.Create(list, separator));
 }
Пример #4
0
 /// <summary>
 /// 将一个数组当作参数值列表添加到参数化查询构建器中
 /// </summary>
 /// <param name="builder">参数化查询构建器</param>
 /// <param name="list">参数值列表</param>
 /// <param name="separator">分隔参数值的分隔符</param>
 public static void AppendValueList <T>(this IParameterizedQueryBuilder builder, IEnumerable <T> list, string separator)
 {
     builder.AppendValue(ValueList.Create(list, separator));
 }