Hi,
This one is a general question.
I am writing a new web application using visual studio 2010, framework 4.
I want to use entity framework
AND using layers model:
1. Application layer (UI)
2. Business Logic layer (gets the parameters from the UI, and prepare them for the data layer)
3. Data layer (executes the query \ stored procedure)
4. entities layer - this layer should be visible in all layers. the data layers returns an entity, the application layer sends it to the business logic, business logic might change it...
The entities should be mostly same as tables from DB, but - in some cases I would like to add an additional field, or create a brand new entity which will include some other entities, or collection.
Is it possible using Entity Framework. If so, in which layer should I generate the entities and how should I do that?
(I found this page:
http://msdn.microsoft.com/en-us/magazine/cc700340.aspx[
^]
but it doesn't have an entities layer)
Thanks