I need to map ntext column of a table using the mapping by code feature in NHibernate 3.2, so that it doesn't get truncated to 4000 characters.
What do I neet to change in the following example? "Notes" is the property which has ntext type in sql table:
Property(emp => emp.Notes);
Note: Please don't mix it with fluent NHibernate or hbm file mapping.
NTEXT
is obsolete. See msdn.microsoft.com/en-us/library/ms187993.aspx. Use nvarchar instead. – Stefan Steinegger