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

Check if connection is already open for stored procedure calls #845

Open
sjh37 opened this issue Jul 30, 2024 · 0 comments
Open

Check if connection is already open for stored procedure calls #845

sjh37 opened this issue Jul 30, 2024 · 0 comments
Assignees
Labels

Comments

@sjh37
Copy link
Owner

sjh37 commented Jul 30, 2024

Need to add

if(Database.Connection.State != ConnectionState.Open)

before the line

	DbInterception.Dispatch.Connection.Open(Database.Connection, new DbInterceptionContext());

As .Open can throw if the connection is already open

@sjh37 sjh37 added the bug label Jul 30, 2024
@sjh37 sjh37 self-assigned this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant