Inheritance modifier defaults to Virtual?

Inheritance modifier defaults to Virtual?

Postby alex100 » Mon 20 Mar 2017 17:47

Hi,

After upgrading to 9.3.230 and saving our model we noticed that all properties have changed to virtual.
It seems that "virtual" is a default setting for that property now, may be it was before but generation wasn't working for it, but for us it's not a desired behaviour, as we don't want to have additional performance hit due to virtual modifiers.

Could you clarify if this has changed recently and if there is a way to set all fields (few thousands of them) to none?
alex100
 
Posts: 6
Joined: Mon 18 Jul 2016 19:56

Re: Inheritance modifier defaults to Virtual?

Postby Shalex » Tue 21 Mar 2017 17:13

A default code generation is not changed with the new build.

Previous incorrect behaviour: Inheritance Modifier=None (default) generated "virtual".
Current behaviour: Inheritance Modifier=Virtual (default) generates "virtual".

alex100 wrote:if there is a way to set all fields (few thousands of them) to none?
Please navigate to Model Explorer > Model > Classes, press Ctrl+F to open Find window, set Look in:Properties, select "Use regular expressions", click right arrow and choose ".* Any match" to select all properties. Then set Inheritance Modifier=None for all properties simultaneously.

Another way to select several properties: click the first property of the first class and, holding Shift, click the last property of the last class to make properties between them be selected.
Shalex
Devart Team
 
Posts: 7884
Joined: Thu 14 Aug 2008 12:44


Return to dbForge for Oracle