Entity Framework Code-First provides a set of DataAnnotation attributes, which you can apply to your domain classes and properties. DataAnnotation attributes override default Code-First conventions.
System.ComponentModel.DataAnnotations includes attributes that impacts on nullability or siz...