Hi there,
I'm using the EF and wondering how other people are separating the Data Context from the Entities.
Basically i need one tier to access the Data Context (the model object) to call SaveChanges() etc.. and other tiers need access to the Entity type itself. So for example if a method returned an Entity and i called that method from my UI, then I would have to reference the Model from the UI and that's not good.
is there a way to have the entity types in one project and have the Data Context in another project?
i guess another way would be to create Interfaces for each entity and put the interfaces in another project which other tiers could reference. But this is a lot of maintenance and a pain in the ass