Skip to content

Commit 26731a6

Browse files
authored
Support for any Dictionary implementation
Right now only `IReadOnlyDictionary<TKey, TValue>>` implementation are allowed, but any `IEnumerable<KeyValuePair<TKey, TValue>>` would work. So changing the overload would be an improvement.
1 parent ab2a303 commit 26731a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QueryBuilder/Query.Insert.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public Query AsInsert(IEnumerable<string> columns, IEnumerable<object> values)
4040
return this;
4141
}
4242

43-
public Query AsInsert(IReadOnlyDictionary<string, object> data, bool returnId = false)
43+
public Query AsInsert(IEnumerable<KeyValuePair<string, object>> data, bool returnId = false)
4444
{
4545
if (data == null || data.Count == 0)
4646
{
@@ -117,4 +117,4 @@ public Query AsInsert(IEnumerable<string> columns, Query query)
117117
}
118118

119119
}
120-
}
120+
}

0 commit comments

Comments
 (0)