I'm hoping someone can correct my ignorance here.
I have upgraded my solution from EF5 to EF6.
I am using ObjectContextManager in my data layer, database-first with an edmx model.
To upgrade to EF6 I followed the guide on MSDN: http://msdn.microsoft.com/en-us/data/upgradeef6.aspx
So now, in my model,
public partial class StoreDataContext : ObjectContext
"ObjectContext" refers to System.Data.Entity.Core.Objects.ObjectContext. Good so far.
However, in my Dal I now have errors everywhere:
using (var ctx = ObjectContextManager<StoreDataContext>.GetManager("StoreDataContext"))
There error is: The type 'Store.DataAccess.Ef.StoreDataContext' must be convertible to type 'System.Data.Objects.ObjectContext' in order to use it as parameter 'C' in the generic class 'Csla.Data.ObjectContextmanager<C>'
Hmm. I tried referencing the Csla.Data.EF6 library, assuming there was something in it that I could use, but it only contains DbContextManager. I need ObjectContextManager - changing to DbContextManager would require massive changes in all my Dal code.
Can someone help?