Last post Oct 15, 2015 04:39 AM by seamus1982
Oct 14, 2015 10:48 AM|seamus1982|LINK
I have a project and I want to seperate the poco classes generated from the database from the context. So I use the EF 6.x dbcontext. I point it to the context in the other project and it generates the poco classes perfectly. I then point the context.tt
to the poco classes in the other project. However, this means that the dbcontext is available in the second project which defeats the point. How can I just have the poco classes available and for me to be able to save the poco classes created in the context?
Any help would really be appreciated. I have read a number of articles but to no avail.
Oct 14, 2015 09:52 PM|Lorris|LINK
You could refer to the following links:
Oct 15, 2015 04:39 AM|seamus1982|LINK
Thanks for the reply. Yeah I have tried both those articles however, unfortunately, the context is still available from the newly created db context namespace. Any help would be appreciated in this matter.