MVC4 Scaffolding, DBContext in different assemblies
I am trying to expose a DBContext class (code first) that is in a different assembly with a link added to the current MVC project.
VS2012 gives me a message that says the DBContext is in a different assembly and that it cannot modify the class. I understand that it will not be able to modify the class as it is in a different assembly, but the class already has the required DBS files as fields.
The solution that comes to my mind is to create a DBContext proxy in my MVC project, use it to fake it and link to the original DBcontext inside the controller.
Is there any correct / better / easier way to get around this? Am I missing something really obvious here?
Thank.
+3
source to share
No one has answered this question yet
Check out similar questions: