When adding the EntityFramework package from NuGet into a SharePoint project with the command:
PM> Install-Package EntityFramework
We got to make sure some things are configured into SharePoint. You’ll notice that adding the package creates a new App.config file. The XML in this file should be added to the web.config file from SharePoint. But to make sure we safely edit the config, we create an eventreceiver and add the necessary nodes there.