Is it possible to use Mini-Profiler with Simple.Data Library? I use it to get data from MySql like this:
var db = Database.OpenConnection(ConnectionString);
var book = db.Books.FindById(id);
How can I user Profiler with this code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can tell Simple.Data to use a pre-existing connections and wrap your connection with a profiled connection: