Enable-Migrations -ContextTypeName MvcMovie.Models.MovieDBContext
The Enable-Migrations command creates a Configuration.cs file in a new Migrations folder.
add-migration Initial
add-migration Rating 添加"Rating"字段
add-migration DataAnnotations
update-database
时间: 2024-10-11 20:21:23