原因:
没有引用EntityFramework命令
解决:
在程序包管理器控制台执行如下命令:Import-Module 项目路径packagesEntityFramework.6.1.3(EF版本) oolsEntityFramework.psd1