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
You need to create a reference, so it will be copied in the debug folder. So later it can accessed in runtime.
Don't to copy any files, just create this reference:
private volatile Type _dependency; public MyClass() { _dependency = typeof(System.Data.Entity.SqlServer.SqlProviderServices); }