tags:

views:

36

answers:

2

I want my nhibernate entity property to be nullable.

the column is a nvarchar(MAX) in sql server, and it can be NULL.

How do I map this using the xml mapping?

+2  A: 

You are mapping it as string.

Li0liQ
A: 

not-null="false" should do the trick. Or leave it as-is since the default is to allow nulls.

dotjoe