How to use Dataannotation attributes in mvc 6 with entityframework 7 beta4?
I am not able to use dataannotation attributes such as required, Key,StringLength,MaxLength etc in data model for entityframework code first migration.
I added stringLength(45) in model and getting as nvarchar(max) in table instead of nvarchar(45).
Source