Determining the range of value for a field in database by using db-migration
问题 I've used Entity Framework 6.x and I've produced my database by code-first approach. After creating db, I've decided to some changes in my db. for example I want to determine a range of value for Size property in my model. my model: public class Tag : Entity, ITag { /// <summary> /// Size can be 1, 2, 3 or 4 /// </summary> [Range(1, 4)] public virtual int Size { get; set; } [Required] [StringLength(25)] public virtual string Title { get; set; } [StringLength(256)] public virtual string