小编use*_*346的帖子

MiniProfiler与EntityFramework 6代码优先

我试图将一个MiniProfiler连接到一个先使用EF6代码的现有项目,aaaand它只是让我疯了:)

问题是默认情况下MiniProfiler与EF 4.1一起使用,对于6.0,它们实现了一种快速解决方案https://github.com/SamSaffron/MiniProfiler/pull/134

但似乎它对我不起作用.每次我启动应用程序时,我都会遇到以下异常:

System.InvalidOperationException: The Entity Framework provider type 'StackExchange.Profiling.Data.EFProfiledSqlClientDbProviderServices, MiniProfiler.EntityFramework6' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
Run Code Online (Sandbox Code Playgroud)

有没有人遇到过类似的问题?谢谢!

asp.net-mvc-4 entity-framework-6

5
推荐指数
1
解决办法
1895
查看次数

标签 统计

asp.net-mvc-4 ×1

entity-framework-6 ×1