New designer question - extending generated classes

4 posts, 0 answers
  1. Greg
    Greg avatar
    2 posts
    Member since:
    Jul 2009

    Posted 02 Apr 2010 Link to this post

    I'm starting a new project, and evaluating OpenAccess to manage our DAL.  I believe it would be a better to start using the new designer rather than the previous reverse mapping method, however I am having trouble finding references/examples using the new designer.  I'm working through it, but am not sure about this:

    Is it possible to extend classes generated using the new designer? If so, what is the best method to do so?

    Specifically, what we need to do is implement INotifyPropertyChanged for some of our entities to manage WPF data binding. Does anyone have advise on how best to approach?
  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 06 Apr 2010 Link to this post

    Hello Greg,

    Currently using a custom code generation template for the new designer is not fully supported. There are some issues which were fixed and will be part of the next service pack of the Telerik OpenAccess ORM.
    You will probably find helpful our code library example “Using Telerik OpenAccess ORM and WPF”.

    Sincerely yours,
    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.
  3. DevCraft banner
  4. Andrei
    Andrei avatar
    7 posts
    Member since:
    Jan 2010

    Posted 14 Jul 2010 Link to this post

    Hi
    With the q2 release can you explain how its possible to extend a generated class ?

    Thanks
  5. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 16 Jul 2010 Link to this post

    Hi Andrei,

    You could create a new partial class with the same name where you can place the extension logic for the persistent class. Otherwise if you provide the logic within the class file generated from the dsl all the changes will be reset.

    Hope that helps.

    All the best,
    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