Вопрос

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