mrblah
mrblah

Reputation: 103517

entity property that is nullable

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?

Upvotes: 0

Views: 183

Answers (2)

dotjoe
dotjoe

Reputation: 26940

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

Upvotes: 0

Li0liQ
Li0liQ

Reputation: 11264

You are mapping it as string.

Upvotes: 2

Related Questions