No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'.

后端 未结 10 2028
旧巷少年郎
旧巷少年郎 2020-12-09 14:37

We are using EntityFramework 6 with Code First. We have a console app that has no reference to EntityFramework but reads the connection string from its App.config. It call

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 15:30

    This is because EntityFramework.SqlServer.dllis not copied into your project. Add that dll and it will hopefully work.You can find that from the project where you added datamodel.

提交回复
热议问题