I am trying to use repository template with EF4 using VS2010.
To this end, I use POCO code generation by right-clicking on the designer of the entity model and clicking "Add code generation element". Then I select the POCO template and get my classes.
What I would like to do is to have my solution structured into separate projects for Entity (POCO) classes and another project for an entity model and repository code.
This means that my MVC project can use POCO classes for strongly typed representations, etc., and should not know about the repository or have a link to it.
To connect everything together, I will have another separate project with interfaces and IoC.
That sounds good in my head. I just don't know how to create classes in my own project! I can copy them and then change the namespaces, but I wanted to avoid manual work whenever I change the circuit in db and want to update my model.
thank
Max Mar 17 '10 at 18:36 2010-03-17 18:36
source share