The provider did not return a ProviderManifestToken string

来源:互联网 发布:e领网络 编辑:程序博客网 时间:2024/06/05 16:19

在使用EFcode创建数据model时,报error "ProviderIncompatibleException: The provider did not return a ProviderManifestToken string"
解决方案:如下
 <add name="MovieDBContext"
         connectionString=" Data Source=localhost; Initial Catalog=movices;Persist Security Info=True; User ID=sa;Password=123 "
         providerName="System.Data.SqlClient" />
把数据源改成红色部分。

原创粉丝点击