Skip to content

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

@sjh37

Description

@sjh37

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions