-
Notifications
You must be signed in to change notification settings - Fork 345
Example use of transactions in async method #1531
Answered
by
bgrainger
bsiewert-aya
asked this question in
Q&A
-
Hello,
I'm new to MySqlConnector and had a question about the use of transactions.
I'm studying the example console application in the documentation found here:
https://mysqlconnector.net/tutorials/best-practices/
With this example below, can you provide a proper usage with transactions if I were to use the same task in the example console app but use a transaction to upsert records in each task?
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
bgrainger
Dec 10, 2024
You would use BeginTransactionAsync and CommitAsync.
Replies: 1 comment
-
You would use BeginTransactionAsync and CommitAsync.
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 1
0 replies
Answer selected by
bsiewert-aya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment