Skip to content

GetCurrentTransaction().IsActive? #2522

Answered by bahusoid
nfplee asked this question in General
Discussion options

You must be logged in to vote

Is the IsActive check needed? I thought GetCurrentTransaction would return null if it's not active.

Yeah it's not needed. You can skip this check in your code. I don't remember why it's been left but for some legacy obscure custom transaction handling cases

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hazzik
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2522 on September 17, 2020 22:05.