I'm trying to get the sample Project Manager solution working with EF5 and DbContext. I've changed it over to use CSLA.Data.EF5 and DbContext. I'm getting a "Constructor on type 'ProjectTracker.DalEf.PTrackerEntities' not found." error when running it. Anybody know how to fix this or has a copy of the Project Manager running with EF5 and DbContext?
I got it working by removing the "PTrackerEntities" parameter from the DbContextManager<PTrackerEntities>.GetManager calls.
Hi,
Is it possible for you to share the EF-code?
Regards
/Peter
Peter,
It was more than just code to get it working. I upgraded the entire solution to CSLA 4.5.32 (beta), EF5, MVC4 and added the DbContext generation to the model. I can certainly help get you up and running if you are having trouble doing any of those things. The code changes were very trivial.
-Dan
Hi Dan,
I had some difficulties to get it running, so I took another approach, not using the code first approach, and then haven't bother to dig any deeper in it (the project had to move on). But that was before the CSLA 4.5.32 version, so maybe that upgrade would have solved everything.
When I saw your post, I just thought it would have been interesting to see how you solved it and compare with my code (since I still have the code history from TFS). No worries though.
Regards
/Peter
Copyright (c) Marimer LLC