You wont be able to see in-line SQL because OrmLite uses parameterized queries, the output you’re seeing shows the SQL that is generated by OrmLite and executed on the RDBMS.
There’s a few ways to view the db parameter values, you can use the db.GetLastSqlAndParams() API instead, you can specify a Debug logger which will log both the SQL and parameter values, e.g:
Right, but it can’t hang onto the IDbCommand as it can’t be accessed after it’s disposed and capturing it after every command will impact perf, maybe I can add a OrmLiteConfig.DebugMode flag to control this.
Tried to use the CaptureSqlFilter in gistlyn but then I got a
“Type ‘ServiceStack.OrmLite.OrmLiteState’ in Assembly ‘ServiceStack.OrmLite, Version=4.5.0.0, Culture=neutral, PublicKeyToken=null’ is not marked as serializable.”