Unable to setup MiniProfiler w/ Enity Framework 4.0 (Not code first)
I installed MiniProfiler and MiniProfiler.EF in my project via nuget. Before using MiniProfiler I would open a connection using this in my model repository: public class NotificationRepository { private CBNotificationModel.CB_NotificationEntities db; public NotificationRepository() { db = new CB_NotificationEntities(); } public NotificationContact GetNotificationContacts() { return db.NotificationContacts.ToList(); } } To use mini profiler I created: public static class ConnectionHelper { public static CB_NotificationEntities GetEntityConnection() { var conn = new StackExchange.Profiling.Data