Entity framework 4 休眠Rhinos-实体探查器-类型或命名空间名称';配置';命名空间中不存在';System.Data.Entity';
我通过使用Nu Get休眠Rhinos安装了Entity Profiler 2.02145.0版。它安装了所需的程序集并创建了以下引导程序类:Entity framework 4 休眠Rhinos-实体探查器-类型或命名空间名称';配置';命名空间中不存在';System.Data.Entity';,entity-framework-4,Entity Framework 4,我通过使用Nu Get休眠Rhinos安装了Entity Profiler 2.02145.0版。它安装了所需的程序集并创建了以下引导程序类: using HibernatingRhinos.Profiler.Appender.EntityFramework; [assembly: WebActivator.PreApplicationStartMethod(typeof(Application.Web.App_Start.EntityFrameworkProfilerBootstrapp
using HibernatingRhinos.Profiler.Appender.EntityFramework;
[assembly: WebActivator.PreApplicationStartMethod(typeof(Application.Web.App_Start.EntityFrameworkProfilerBootstrapper), "PreStart")]
namespace Application.Web.App_Start
{
public static class EntityFrameworkProfilerBootstrapper
{
public static void PreStart()
{
// Initialize the profiler
EntityFrameworkProfiler.Initialize();
// You can also use the profiler in an offline manner.
// This will generate a file with a snapshot of all the EntityFramework activity in the application,
// which you can use for later analysis by loading the file into the profiler.
// var filename = @"c:\profiler-log";
// EntityFrameworkProfiler.InitializeOfflineProfiling(filename);
}
}
}
当我运行我的应用程序时,在这一行EntityFrameworkProfiler.Initialize()上出现了异常“类型或命名空间名称'Config'在命名空间'System.Data.Entity'中不存在”(是否缺少程序集引用?)代码>
System.Data.Entity在我的web项目中被引用
关于如何解决错误有什么想法吗?我想知道这个版本是否应该对EF6而不是EF4起作用。我也有同样的错误。有什么想法吗?只是得到了一个不同的版本,它现在正在与EF5一起工作。我发电子邮件给支持人员,他们说这是版本2145中的一个错误,使用2144或2146。我可以确认它在2146年起作用。