There is not so much to be done but here are the steps:
- Create a view in the database and include the columns you want to be mapped to the new class;
- Use the Update from Database wizard
to update the domain model and include the newly created view;
- Now you should be able to see the view in the Model Schema Explorer
pane. Just drag it to the design surface and a new persistent class will be created;
- If you save the diagram, an error should be shown that the new class does not have an identity member. In order to work correctly OpenAccess requires that all persistent classes in the model have identity members. So you will have to manually set one or more properties as identity members for the new class. The requirement is that the identity member (or the combination of several identity members) can identify uniquely each persistent object. In your case the IdPerson column should be enough if the Person - Address relation is one-to-one. You can follow this article
in order to resolve the validation error.
Hope that helps.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items