Stuart
Stuart

Reputation: 66882

Setup of mvc-mini-profiler for EF-db- first

I'm trying to use the mini-profiler with old-style EF code - database-first.

So far:

Any help/advice?


Update - looking at http://code.google.com/p/mvc-mini-profiler/wiki/FrequentlyAskedQuestions at least one other person has seen the same sort of problem with 1.7 - although (s)he's doing code first. I'll keep playing to see if I can work out what to do...

Upvotes: 5

Views: 1521

Answers (1)

RyanW
RyanW

Reputation: 5398

Try 1.9. With the update, I just added the new Initialize method in Application_Start and removed the DbProviderFactories config section and now I have SQL profiling with EF (2 databases even, one with code first and one with database first).

protected void Application_Start()
{
    ....other code

    MiniProfilerEF.Initialize();
}

Upvotes: 4

Related Questions