Skip to content
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

Open
Shepardeon opened this issue Mar 2, 2023 · 1 comment
Open

Insert many with IEnumerable<object> #665

Shepardeon opened this issue Mar 2, 2023 · 1 comment

Comments

@Shepardeon
Copy link

Hi !

I noticed SqlKata was able to insert multiple records with one query by providing an IEnumerable<string> as columns IEnumerable<IEnumerable<object>> as values; which works great, however it feels a bit awkward to use. Especially since there is an implementation of AsInsert() that can take an object. So, I think it would make sense to have an overload of AsInsert() (and therefore of Insert() and InsertAsync()) which takes an IEnumerable<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 :)

@JakeAlmer
Copy link

I've thought the same thing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants