Creates SQL for a comma-delimted list of arbitrarily-named parameters with the specified values.
public static Sql ParamList(IEnumerable values)
Empty SQL fragments are ignored. Since it would otherwise result in a confusing SQL syntax error, an InvalidOperationException is thrown if the collection of values is empty. Use Sql.Join(", ", values.Select(Sql.Param))")
to allow an empty collection.
Creates SQL for a comma-delimted list of arbitrarily-named parameters with the specified values.
public static Sql ParamList(IEnumerable<object?> values)
Empty SQL fragments are ignored. Since it would otherwise result in a confusing SQL syntax error, an InvalidOperationException is thrown if the collection of values is empty. Use Sql.Join(", ", values.Select(Sql.Param))")
to allow an empty collection.