sjh37/EntityFramework-Reverse-POCO-Code-First-Generator

Check if connection is already open for stored procedure calls

sjh37 opened this issue · 0 comments

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