Nhibernate, mapping as (n)varchar max ?

Posted by Quandary on Stack Overflow See other posts from Stack Overflow or by Quandary
Published on 2010-06-04T21:39:24Z Indexed on 2010/06/05 21:42 UTC
Read the original article Hit count: 1532

Question: In nHiberne, I map a string like this:

[NHibernate.Mapping.Attributes.Property(Name = "MLST_Description", Type = "String", Length = 400)] which maps string to nvarchar(400)

This one [NHibernate.Mapping.Attributes.Property(Name = "MLST_Description", Type = "String")] maps to nvarchar(255)

But how can I map to nvarchar(max) ?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about fluent-nhibernate