im having a sql db in azure. i have a string column where the string length displays "max", but in the code i have set the string length to 5000.please help. im using code first migration.


context model snapshot

The maximum number of byte-pairs for an nvarchar column is 4000. See these docs. Anything above that is treated as max.
If you make your column non-unicode, the max size is 8000.
Most helpful comment
The maximum number of byte-pairs for an
nvarcharcolumn is 4000. See these docs. Anything above that is treated asmax.