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

Thread is closed for posting
2 posts, 0 answers
  1. Gabor
    Gabor avatar
    8 posts
    Member since:
    Nov 2008

    Posted 23 Feb 2010 Link to this post

    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

  2. Damyan Bogoev
    Damyan Bogoev avatar
    581 posts

    Posted 25 Feb 2010 Link to this post

    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.
Back to Top