标签:
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
标签:
原文地址:http://www.cnblogs.com/lovewl2/p/4675745.html