This is a known limitation of the namespace generation. Luckily there is an easy workaround for it. You could use the Model Operations
dialog that allows you to execute a number of operations on multiple classes part of your model at the same time. Please refer to this documentation article
for more information.
In order to adjust the namespaces of the classes corresponding to tables from a given schema, please follow those steps:
1. Right click in the diagram background and select Model Operations...
2. On the left side you will notice a Search
panel - please expand Table
and through the Schema
text-box filter out all classes corresponding to a given Schema
3. Select all of those classes from the grid in the middle section.
4. From the Operations
panel located on the right, select the Change Namespace
operation and in the New Namespace
text-box specify the desired namespace.
5. Repeat steps 2 to 4 for all schema.
Once ready with adjusting the namespaces in order for those changes to come into effect, please make sure to re-save .rlinq
(the diagram) file so the code generation is triggered updating your domain classes.
Please note that should you update the model, the specified namespaces will remain for the existing classes. This means that you should adjust the namespaces for newly added classes and possibly also re-adjust the namespaces to reflect future changes made in the database schema.
Should you have any more questions do not hesitate to get back to us.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map