I have several entities that I applied different data annotations on each one, but when I use of migration, these data annotations are not applied to the database. In addition, I also using System.ComponentModel.DataAnnotations. where is the problem from?
Run the 'Update-Database' command to apply the updated/new migration to the database.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.