Using mvc-mini-profiler with EF 4.0 and Ninject

前端 未结 3 808
有刺的猬
有刺的猬 2021-02-05 23:22

I\'m trying to use the new mvc-mini-profiler with my EF4 based app, but I have no idea how to properly get a connection to my destination datasource.

Here\'s as far as I

3条回答
  •  情书的邮戳
    2021-02-05 23:30

    You have to initialize the connection directly, as such:

    var rootConn = new System.Data.SqlClient.SqlConnection(your_connection_string_minus_your_ef_junk);
    

提交回复
热议问题