Hi,
I'm writing a few WCF services that expose data being retrieved from the Entity Framework, and in following Domain Driven Design patterns, I've got a repository per aggregate. The concrete example is a collection of questions and answers. There is a QuestionRepository and an AnswerRepository.
I'm running into problems when I want to pass items from the QuestionRepository to the AnswerRepository. Since both services are backed by the same data model, they are using the same logical items, but svcutil puts them in two different name spaces and treats them as completely different services.
Is there any way to get around this problem? Is it possible to host two ServiceContracts in the same service? Is it possible to have WCF reuse the data contracts generated from another service?
Thanks, Roy