andyJ
andyJ

Reputation: 1080

Domain Model Design across layers with Entity Framework

We are in the process of designing a domain model for a new application. The application consists of three layers. Some of the entities are common to all layers, where as some of the other entities are unique to a specific layer. A unique entity may contain a reference or be referenced by a shared entity. The code related to the unique entities will also be unique to the layer. We will be using Entity Framework 4.0 for persistence, with POCO's.

What are our options here with regard to:

Any thoughts on either approach and best practices to follow would be appreciated.

Many Thanks

Upvotes: 3

Views: 542

Answers (1)

Joe Ratzer
Joe Ratzer

Reputation: 18549

I would have ONE model project - with your POCOs. That project can then be referenced by any layer.

Upvotes: 1

Related Questions