SamSaffron/MiniProfiler — pull request #142 by stebet (2013-03-26 08:48:54+00:00)
Title: Adding support for Entity Framework 6 (Currently at Alpha 3).

Although EF6 is currently in Alpha stage, they have made significant changes to bot the underlying injection points as well as the namespaces, requiring a new project (targeting .NET 4.5) to add support.

This pull request adds that project, as well as the needed implementation to inject MiniProfiler into both DbContext and ObjectContext classes. (SqlServer only for now, will probably add SqlCe support also, other providers will hopefully come later as EF6 reaches beta and later RTM).

All that is needed is instead of the old way of calling MiniProfilerEF.Initialize() or using the ObjectContextUtils.CreateObjectContext(conn); you now just need to add the following in the web.config:
```

```