KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
We are exposing a domain model via WCF Data Services. The model originates from EF4, and requires some additional work to get it into the required form for being published via the web-service. I'd like to handle this outside of EF4, to keep our EDMX focused on the model rather than it's usage. My idea is to create a customized "ServiceModel" which is specifically for the web-service and contains the service-specific concerns. My question is in how to best wire-up automapper in the middle of WCF Data Services. I'm using WCF Data Services with a custom (reflection-based) provider for the ServiceModels. Where can I convert the OData query (for ServiceModels) into an EF4 query (for DomainModels), and map the results back to ServiceModels?
Tags (comma-separated)
Save Edits
Cancel