Search code examples
asp.net-mvcentity-frameworkef-code-firstmvc-mini-profiler

MiniProfiler with mvc 3 and ef 4.3


So i've just installed miniprofiler.mvc to my web project and it seems to be working fine. Except I cant figure out what to do to set up EF Code First and the docs seem to be outdated.

My project has a MyApp.DAL project where the EF stuff lives.

What do I need to do to start profiling EF? please help?

UPDATE:

I have installed MiniProfiler.EF 2.0.2 and now I get

Could not load file or assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


Solution

  • i've "fixed" it by simply adding EF to my Web Project

    This is not ideal but it will do for now.