我在ASP.NET MVC上使用PluralSight視頻教程。我不能讓包控制檯上遷移..ASP.NET Mvc項目EF代碼首先啓用遷移錯誤
,當我寫使能的遷移,我收到此錯誤;
多於一個的上下文類型是在裝配「eManager.Web」找到。 要爲eManager.Web.Infrastructure.DepartmentDb啓用遷移,請使用Enable-Migrations -ContextTypeName eManager.Web.Infrastructure.DepartmentDb。 要啓用eManager.Web.Models.UsersContext的遷移,請使用Enable-Migrations -ContextTypeName eManager.Web.Models.UsersContext。 。
,當我寫啓用的遷移-ContextTypeName eManager.Web.Infrastructure.DepartmentDb,我收到此錯誤;
上下文類型 'eManager.Web.Infrastructure.DepartmentDb'。在程序集「eManager.Web」中找不到。
感謝您的幫助。