This is a migrated thread and some comments may be shown as answers.

How to put my custom code not be overwittem by wizard?

1 Answer 29 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gabor
Top achievements
Rank 1
Gabor asked on 23 Feb 2010, 08:14 PM
How, to write custom code into the persistent class, and be sure, will not to be overwritten by the designer.

I think about some more complicated validation code, or code that encapsulates the managment of the value object's collection like AddOrderDetail() in the order class.

Thanks in advance

Gabor

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 25 Feb 2010, 07:38 AM
Hi Gabor,

If you are using partial classes (by default) you could place the validation logic inside the ClassName.cs file. When you update the model using the wizards, only the ClassName.Telerik.OpenAccess.cs files are overwritten. Hope that helps.

Best wishes,
Damyan Bogoev
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Development (API, general questions)
Asked by
Gabor
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Share this question
or