I've upgraded to Orchard 1.6 on a website which is dealing with large contents. It seems that NHibernate 3.3 impose a string length constraint even if columns are configured as below :
this.SchemaBuilder.CreateTable( "MyPart", t => t .ContentPartRecord() .Column("Col1", DbType.String, a => a.Unlimited()) .Column("Col2", DbType.String, a => a.Unlimited()) );
The error message is : NHibernate.HibernateException: The length of the string value exceeds the length configured in the mapping/parameter.
I've found few articles like this one :
http://geekswithblogs.net/lszk/archive/2011/07/11/nhibernatemapping-a-string-field-as-nvarcharmax-in-sql-server-using.aspx which is highlighting the problem.
Is there a way to pass through this limitation ?