I have asked about this again in the past, but now I come again with new data. The question is about beeing able to implement inheritance between BOs. For instance there is the Contact BO which is the parent, and the there are the Customer BO, the Employee BO, the Supplier BO etc. which are all Contacts. Meaning that have all the properties and functionality of a Contact, and add more properties and methods of their own.
Trying to accomblish this I have found that (besides some warning of hidden method members), it is not possible for a the child object (Customer) to keep the properties of its parent (Contact) and add some more of its own. This is because of some DataColumn objects and Descriptors that are created and added to a list by the *.Designer code. For instance, no matter if you override the CreateTableSchema method in the Customer, the Contact DataColumns will not be added because the method in the Designer code does not call its base. And even if I modify this, the next partial build will overwrite the code.
Thus in general the child object cannot add properties of its own. Am I correct in this? Has anyone managed to accomblish inheritance?
So the next thing is to actually have two BOs in a single form, and different controls in the form to bind in different BOs.
I am asking all these as a general discussion because I am trying to establish some code standards, and I am trying to find out what I can and cannot do with the framework.
Thanks