-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert many with IEnumerable<object> #665
Comments
I've thought the same thing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi !
I noticed SqlKata was able to insert multiple records with one query by providing an
IEnumerable<string>
as columnsIEnumerable<IEnumerable<object>>
as values; which works great, however it feels a bit awkward to use. Especially since there is an implementation ofAsInsert()
that can take an object. So, I think it would make sense to have an overload ofAsInsert()
(and therefore ofInsert()
andInsertAsync()
) which takes anIEnumerable<object>
and compile the relevant query.If you feel like this could be a nice addition to the library, I could try myself at a PR.
Cheers :)
The text was updated successfully, but these errors were encountered: