Faithlife / FaithlifeData

Helpers for querying ADO.NET-compatible databases.
https://faithlife.github.io/FaithlifeData/
MIT License
6 stars 4 forks source link

Add collections to parameters #7

Closed ejball closed 3 years ago

ejball commented 5 years ago

DbParameters.AddMany(string name, IEnumerable values) could add parameters {name}_0, {name}_1, etc.

DbParameters.AddMany(Func<int, string> name, IEnumerable values) could allow the name to be customized, e.g. i => $"value{i + 1}".