We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dabbaf5 commit 18a1755Copy full SHA for 18a1755
1 file changed
src/Sql/ParameterCollection.cs
@@ -52,8 +52,8 @@ public Parameter this[string name] {
52
/// </summary>
53
/// <param name="array">The array whose elements are copied to the parameter list.</param>
54
/// <returns>The parameter list corresponding to the specified array of positional parameters.</returns>
55
- public static implicit operator ParameterCollection(object?[] array) => [.. array.Index().Select(entry =>
56
- entry.Item is Parameter parameter ? parameter : new Parameter($"?{entry.Index + 1}", entry.Item)
+ public static implicit operator ParameterCollection(object?[] array) => [.. array.Select((value, index) =>
+ value is Parameter parameter ? parameter : new Parameter($"?{index + 1}", value)
57
)];
58
59
/// <summary>
0 commit comments