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

New designer question - extending generated classes

3 Answers 99 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Greg
Top achievements
Rank 1
Greg asked on 02 Apr 2010, 03:36 PM
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?

3 Answers, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 06 Apr 2010, 09:35 AM
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.
0
Andrei
Top achievements
Rank 1
answered on 14 Jul 2010, 04:45 PM
Hi
With the q2 release can you explain how its possible to extend a generated class ?

Thanks
0
Damyan Bogoev
Telerik team
answered on 16 Jul 2010, 04:25 PM
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
Tags
Getting Started
Asked by
Greg
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Andrei
Top achievements
Rank 1
Share this question
or