Page 1 of 1

New Business Logic Entities

PostPosted: Thu Oct 24, 2019 7:51 am
by SBarnes
Hi Mike

A while ago you provide details of what is necessary to create business objects here https://forums.jiwa.com.au/viewtopic.php?f=26&t=474&p=1553&hilit=own+business+objects#p1553 given the the now use of separate manager objects instead of the instance object has anything changed before doing this under 7.2.1?

Re: New Business Logic Entities  Topic is solved

PostPosted: Wed Oct 30, 2019 4:28 pm
by Mike.Sheen
SBarnes wrote:has anything changed before doing this under 7.2.1?


None that you wouldn't already be aware of... The constructor can't do much because the Manager property would not have been set by the factory - so most of the code in the constructor is moved into the overridden Setup method.

The one other change is one the compiler will guide you into the correct way - the override of the Save method has changed from:

Code: Select all
Public Overrides Sub Save()


To:

Code: Select all
Protected Overrides Sub iSave()

Re: New Business Logic Entities

PostPosted: Wed Oct 30, 2019 4:36 pm
by SBarnes
Thanks Mike