Pattern for EDM and WCF Web Services RRS feed

  • Question

  • While utilizing the EDM in WCF Services are there any patterns for defining Service Contracts? If we utilize the Entities generated by the EDM for Service contract, then while consuming the WCF service, entire relevant Entity Model is made available along with the Service Proxy. Which also includes the ObjectContext object where as we want don't want to expose all these entities to the Service Consumer.

    One pattern could be to define a separate XSD based service cotract which is consumed by the Service Consumer. Then it adds additional layer of Entity Translation i.e. from Service Entities to the Entity Model Entities.

    Is there any other pattern that can be applied?

    Wednesday, May 12, 2010 4:52 AM