开发者

Architecture for Entity framework & WCF

开发者 https://www.devze.com 2023-02-11 04:00 出处:网络
What architecture i should follow in order to use entity fram开发者_如何学编程ework & WCF? It would be nice if there is a link availableA typical three layer architecture contain a UI layer, a log

What architecture i should follow in order to use entity fram开发者_如何学编程ework & WCF? It would be nice if there is a link available


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消