Hi SamVan,
I define the repository interfaces within the model because domain services may need to use them at some point. I use projects to help define responsibility boundaries but you could do just the same with namespaces and folders all within one class project.
Quote:
|
Is it because you use WCF in chapter 6? Or is it generally a good idea to have a special Contract and DataContract for the Interfaces for the Service layer?
|
I did this to emphasis the responsibilities of each part of the WCF implementation also the client code will use the Contract and DataContract but I didn't want the client having a reference to the actual service implementation, this is why I split them up.
Quote:
|
What about IxxxRepositories? Should we define them and the DTO's outside of Model, and let both the Service and Repository reference them?
|
Not sure what you mean with this question. What are the IxxxRepositories?
Cheers
Scott