In this chapter, the Model Mock implementation has been replaced by the real one (based on RIA Services). As the entities have not been generated from RIA Services, some tweaks have to be performed on the contracts so that they return the entities defined by RIA Services. The application is also to be implemented and, when completed, refactored a little bit.
First, all the operations to be performed in the model were defined.
Second, the logic of all the windows in the application was implemented.
To use the Unit of Work concept, the model factory was created. This will allow a new model instance, without having to share context.
Let us explore the changes that have been introduced by navigating the project structure.