What architecture i should follow in order to use entity framework & WCF? It would be nice if there is a link available
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.