-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Use existing transaction identifier in RelationalConnection.UseTransaction #20844
Conversation
@@ -53,10 +54,30 @@ public interface IRelationalTransactionManager : IDbContextTransactionManager | |||
/// Specifies an existing <see cref="DbTransaction" /> to be used for database operations. | |||
/// </summary> | |||
/// <param name="transaction"> The transaction to be used. </param> | |||
/// <param name="transactionId"> The unique identifier for the transaction. </param> | |||
/// <returns> An instance of <see cref="IDbTransaction" /> that wraps the provided transaction. </returns> | |||
IDbContextTransaction UseTransaction([CanBeNull] DbTransaction transaction, Guid transactionId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndriySvyryd Do you think it's worth doing a default implementation of these methods in the interface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think this change breaks anything.
Thanks @Marusyk |
Add overload that takes a GUID to use for the transaction ID.
Fixes: #20828
Please review
Thank you in advance