Reputation: 67335
Using code-first data annotations, is it possible to use the [MaxLength()]
attribute to specify a string column should be NVARCHAR(MAX)
?
It doesn't appear to support this.
Upvotes: 0
Views: 1571
Reputation: 346
If you don't use the [MaxLength()] attribute at all on your property, it'll create a column as NVARCHAR(MAX) by default I believe
Upvotes: 1