我在我调用的App_Start()方法的MVC项目中使用miniprofiler
MiniProfilerEF6.Initialize()
Run Code Online (Sandbox Code Playgroud)
我收到错误:
the Entity Framework was already using a DbConfiguration
instance before an attempt was made to add an 'Loaded' event handler.
'Loaded' event handlers can only be added as part of application start
up before the Entity Framework is used. See http://go.microsoft.com/fwlink/?LinkId=260883 for more information.
Run Code Online (Sandbox Code Playgroud)