2
如何格式化SQL日誌從MSTest標準控制檯輸出寫入的nhibernate?格式Nhibernate SQL登錄MSTest輸出
我已經設置
Configuration.DatabaseIntergation屬性,如
db.LogInConsole = true;
db.LogFormattedSql = true;
db.AutoCommentSql = true;
,但在測試結果的輸出還難看。
什麼仍然是醜陋的?你看到LogFormatted = true和= false之間有什麼區別嗎? AFAIK LogFormattedSql僅插入換行符。 – Firo