I have this property on one of my models:
[Required]
[AllowHtml]
public string Content { get; set; }
In my SQL database this gives me a data type of nvarchar(MAX)
.
I want it to have a data type of xml
.
What data annotation do I need to use?
I'm recreating some code from an old code first application and all I have is the database so it seems this is possible but I can't find any information on how.