Mvc MiniProfiler WrappedConnection Propiedad

How could I get the value from the WrappedCOnnection Property of a ProfiledDbCOnnection?

I know the property exists however its modifier does not allow me to get it during my development;

I need to get the underlying connection for I need to involve Entity framework in the same transaction a procedure call will be involved (because Entity framework does not allow me mapping this stored procedure on it)

I am using Oracle database, and the wrapped connection is a Devart Connection.

preguntado el 08 de noviembre de 11 a las 18:11

1 Respuestas

I was using MvcMiniProfiler 1.7. Now in MvcMiniProfiler 1.9 the property WrappedConnection se hizo público

It is important to notice that probably if you are using Entity Framework together with MvcMiniprofiler, your app may fail compiling, just as happened to me, and the solution was found here:

La actualización de Mini Profiler de 1.7 a 1.9 rompe el código existente

contestado el 23 de mayo de 17 a las 15:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.