How to get MVC-mini-profiler working on EF 4.1 Database First
问题 Spent better part of the day combing through SO for this. Here's the setup MVC 3 App using Repository pattern with 3 repositories across 2 databases. EF 4.1 Database first using the DBContext API for both db connections. Installed mvc-mini-profiler from nuget This is how I create my Db Context in the repository public class TransactionRepository : BaseRepository, ITransactionRepository { AccountingEntities _db = new AccountingEntities(); // repository methods } Then in controllers public