dapper - Can MiniProfiler profile transactions -
i able miniprofiler work following dapper statement
var connstring = configurationmanager.connectionstrings["defaultconnection"].connectionstring; var conn = new profileddbconnection(new sqlconnection(connstring), miniprofiler.current); conn.open(); var result = conn.execute<user>(@"update users set firstname...where username=@username", new {username},null).single(); conn.close();
however able track transactions opening, committing, closing or rolling back. possible miniprofiler in way shows inline sql statements. see there profileddbtransaction(transaction ,connection);
option not able make work
i have wrapped important parts of code profiler steps similar doesn't read inline sql. if there better way love know!
using (profiler.step("rollback transaction")) { _transaction.rollback(); }
Comments
Post a Comment