Isn\'t there a more graceful way to have Entity Framework deployed with your UI project (specifically the sql server driver for EF: EntityFramework.SqlServer.dll) deployed w
I have encountered the same problem and found the solution.
There! No more reference to EF in the UI layer, and the web page will still run. Use only EF in the data layer via repositories and unit of work pattern.
To summarize: Just do NOT install or nuget-install EntityFramework in the UI layer and it will work just fine.