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

run multiple stored procedure with single transaction #38

Open
araxis opened this issue Jul 8, 2020 · 3 comments
Open

run multiple stored procedure with single transaction #38

araxis opened this issue Jul 8, 2020 · 3 comments

Comments

@araxis
Copy link

araxis commented Jul 8, 2020

No description provided.

@mooshpot
Copy link
Contributor

mooshpot commented Apr 5, 2021

Hi araxis

I hope that you're well.

The best way would be to create a wrapper stored procedure that called the others and then call wrapper from code.

Cheers
Moosh

@SamFessler
Copy link
Contributor

Hi araxis

I hope that you're well.

The best way would be to create a wrapper stored procedure that called the others and then call wrapper from code.

Cheers Moosh

Would it be possible to pass a transaction to the dbContext through LoadStoredProc or an extra optional method? I am running into scenarios where we need to do bulk inserts to many tables and the only other option would be passing JSON to a stored procedure wrapper. It would be nice to use the existing transactions supported by EFCore- https://docs.microsoft.com/en-us/ef/core/saving/transactions

@snickler
Copy link
Owner

@SamFessler - I'm not 100% sure, but it could be something worth looking into. If you want to take a stab at the integration, I will totally welcome it.

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

4 participants