I'm a little confuse on which layer to put the entity framework in.
Data Access Layer
- Entity Framework(edmx)
- DBCONTEXTModels Folder - classes that inherit from DBCONTEXT and used to access the database
- App Config - point to database
- Model.tt - contain all clr classe/entites
the problem I have is my models in Domain layer can't retrieve metadata from the entity framework. so when I move the framework, to the domain layer. I get another error as I need to put the database mdf file with the EF or reference to it, which I can't as the Domain Layer souldn't have a dependency on DataAccessLayer.
so How do I go about restructuring this?
This post has been edited by ray1234: 03 May 2013 - 03:13 AM