We have an ASP.Net application which has been built using the Entity Framework 4.0 which is part of .Net 4.0. After reading a number of articles regarding the new features and, most importantly, the cleaner SQL generated by 4.1, 4.2 and 4.3, we decided to take the opportunity to upgrade our application to use 4.3.1.
I used NuGet to install 4.3.1 into the application and it succeeded in installing the EntityFramework.dll; it added a reference to it and, when I build, it is added to the bin folder. At runtime, everything runs through fine but, looking in SQL profiler and using the Entity Framework Profiler by Hibernatine Rhinos, the SQL appears to be identical.
As the only thing NuGet did was add a reference, I assume I need to do something else to force the application to use the 4.3.1 at runtime but I am unable to find out what I must do.
I appreciate that the SQL may well be identical for the queries being run and that just looking at the generated SQL may not be show any differences but I would like to be able to confirm that the new version is really being used at runtime.
Do I need to add something else to the web.config to ensure 4.3.1 is used or is what I have done enough? Surely I need to change something somewhere in order to get things like System.Data.Entity to come from the new EntityFramework.dll rather than the standard .Net4.0 libraries.
Any help gratefully received. Ste