Ulhas Tuscano
Ulhas Tuscano

Reputation: 5620

Architecture for Entity framework & WCF

What architecture i should follow in order to use entity framework & WCF? It would be nice if there is a link available

Upvotes: 2

Views: 606

Answers (1)

kroonwijk
kroonwijk

Reputation: 8400

A typical three layer architecture contain a UI layer, a logic layer and a data (access) layer. So is you are talking about EF and WCF, you are talking about the data and logic layer or the data access layer exclusively.

If you are going to expose your physical datamodel using EF and WCF data services, you are actually exposing your datamodel one-to-one in the OData protocol. Used that way, I would call that my Data access service.

If you are going to use EF to map your physical datamodel into a logical datamodel using EF and then allow operations to be performed on that after validation and business logic have run in a WCF service with a formalized interface, I would call that a combination of a Data layer and a logic layer. EF does the coupling between the layers and WCF exposes the capabilities.

Upvotes: 2

Related Questions