There is some post that says SQL 2005 dialect would convert anything bigger
than 4000 to max, this didn't seem to be the case for me with 2005 and 2008
dialects.
This is one hack to workaround it though:
propertyCustomizer.Column(c => c.SqlType("nvarchar(max)"));
>
>
*Mohamed Meligy
*Readify | Senior Developer
M:+61 451 835006 | W: readify.net
[image: Description: Description: Description: Description:
rss_16]<http://gurustop.net>
[image: Description: Description: Description: Description:
cid:[email protected]]
<http://www.linkedin.com/in/meligy> [image:
Description: Description: Description: Description:
cid:[email protected]] <http://twitter.com/meligy>
<http://www.greatplacetowork.com.au/best/best-companies-australia.php><http://readify.net/who-we-are/microsoft-partnership><http://www.greatplacetowork.com.au/best/best-companies-australia.php><http://www.readify.net/AboutUs/NewsItem.aspx?id=10>
On Mon, Jul 11, 2011 at 6:15 AM, lszk <[email protected]> wrote:
> How can I mapping a string field length to the nvarchar(max) in sql
> server?
>
> Property<string>(x => x.Content, x => x.Length(Int32.MaxValue));
> It results in mapping to nvarchar(255) only.
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.