Fabio was correct. In the latest GA of NHibernate, the mapping he provided works.
I had gotten confused because my mapping was incorrect and I was testing an update against a truncated insert. But when I tested a round trip with NHibernate it worked like a charm. Thanks, Fabio, for your help. On Jun 21, 2:55 am, Bas <basder...@gmail.com> wrote: > Hi Michael, > > You can find the solution here: > > http://www.basderaad.nl/2011/02/large-strings-in-nhibernate-3-0/ > > Bas > > On Jun 21, 12:58 am, Michael Hedgpeth <mhedgp...@gmail.com> wrote: > > > > > > > > > I recently upgraded from NHibernate 2.1 to 3.1. I am having a problem > > with NHibernate truncating my nvarchar(max) columns. This post > > describes my situation > > perfectly:http://www.primordialcode.com/Blog/Post/nhibernate-prepare_sql-consid.... > > > The current behavior seems to me to be a bug. If I give a simple > > mapping: > > > <property name"LargeString" /> > > > And the there is a column "LargeString" in the database with an > > nvarchar(max) data type, it would be defective behavior to truncate > > data retrieved by that column to 8000 characters. But that is exactly > > what 3.1 does. > > > Could someone give me direction on how to handle this? -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com. To unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.