I've been playing with a test project I've created that is very similar to the CSLA sample, EncapsulatedInvoke. I'm using CSLA 4.5.10 and Entity Framework 5 and .NET 4.5. When I run unit test against the EF data access library I get an exception that basically says:
Could not load file or assembly 'EntityFramework, Version=4.3.1.0
Is there something special about CSLA that it looks for the older version of EF? Or, is it something that I'm not doing properly that's not causing the proper version of EF to be linked?
For giggles, I just downloaded the latest CSLA beta 4.5.14, but it appears as if this version is missing DbContextManager, so I'm unable to even compile to test it with the beta.
in the latest 4.5.14 the EF dependencies is moved tto separate assemblies:
In total 4 assemblies, 2 for NET4 and 2 for NET45. This enables you to use the EF version you want.
Thanks, Jonny, that's precisly the direction I needed!
Once I did a NuGet of the CSLA-EF5 package and included the using reference to CSLA.Data.EF5 everything is working for me.
Copyright (c) Marimer LLC