显示这个还看不懂,
More than one context type was found in the assembly 'MVCAndEF'.
To enable migrations for 'MVCAndEF.Models.MVCopenEntities', use Enable-Migrations -ContextTypeName MVCAndEF.Models.MVCopenEntities.
To enable migrations for 'MVCAndEF.Models.MVCAndEFContext', use Enable-Migrations -ContextTypeName MVCAndEF.Models.MVCAndEFContext.
有没有哪个大神可以帮我看一下。
打开程序包管理员控制台
执行
Enable-Migrations -ContextTypeName MVCAndEF.Models.MVCAndEFContext
另外你MVCAndEF这个程序集名字是否写错了