How to configure EF Tracing provider for EF code first
问题 i am trying to use EF Tracing utility with EF 5.0 (code first). but this works only object context which requires edmx file. http://code.msdn.microsoft.com/EFProviderWrappers anybody is having workaround for EF code first with DBContext? anand 回答1: From the Q&A section of the site, the author has this code for using Code First: Use the DbCommand constructor overload in your DbContext... var context = new NorthwindContext(CreateConnectionWrapper(@"name=NorthwindContext")); And the