Check if connection is already open for stored procedure calls
sjh37 opened this issue · 0 comments
sjh37 commented
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