My DB schema has a string as a varchar(max). I have read the other questions concerning setting Length to more than 4000 or 8000 so that it really generates a (n)varchar(max) in
DanP's link is broken. The updated link is:
http://www.primordialcode.com/blog/post/nhibernate-prepare_sql-considerations-mapping-long-string-fields