I have an MVC 3 project. In sql server I have a field called NewsContent which is a text field.
Here is the definition of the property in the Model:
[Display(Name = "Content")]
[DataType(DataType.MultilineText)]
[AllowHtml]
public virtual string NewsContent { set; get; }
When i save it to database it truncates. Well it is Text
why is it truncating?
How can i fix it?
I can see in debugger that the object has all the text, when I look at database it is truncated.
NewsContent
and type isText
Map(x => x.NewsContent);
I dont know if that matters.