After installing and uninstalling EF 6.1.3 in several projects of my solution, when I wanted to use it I had the following problem:
No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See link for more information.
To EF I have it wrapped ( wrappeado ), to avoid referencing the assemblies of EF in other projects, with the pattern of Unit of Work.
I was researching SOen on the following questions and they could not solve my problem:
- No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'
- No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'.
- Entity Framework Provider type could not be loaded?
- Error: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'
I chose not to apply the following solutions because, in my opinion, its implementation generates doubts and they are walk-arounds :
- Load the assembly to the Java; making a call the instance of the provider.
- Referencing the EF in the initial project, together with its supplier.
- Make a copy after compiling the file
EntityFramework.SqlServer.dll