I'd like to print out SQL statements in NHibernate log file without certain blob-type column contents, which really fill up the space and make the whole thing unreadable.

Is this possible somehow, e.g. to apply a filter on logged columns? Maybe another option might be setting a limit on the number of printed characters.

Update: NHibernate version is 3.1.0.4000.

有帮助吗?

解决方案

What version of NHibernate are you using? Since 3.2.0.Alpha1 NHibernate truncates strings to 1000 chars and byte arrays (blobs) to 128 bytes.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top