Hi,
I have an abstract class Company and derived classes AutoDealer, Fleet, etc...
There exists differences in autodealer and fleet companies. Both have some common data and functionality which I want to place in the abstract class. For example, both the companies may or may not add their bank account details in to the system, which depends on the type of account they've chosen. Let us say standard and preferred accounts. The preferred account user needs to enter their bank account details in to system. The system has to allow up to 3 bank accounts for each company in which one should be the default account.
The autodealer requires additional data and behavior like dealership license details and purchase of vehicles. The fleet has a different behavior that required to track transport booking and delivery details.
I've declared the required common company properties in the abstract class. I was stuck with declaring the EditableChildList property of CompanyBankAccountsList in company abstract class. And CompanyBankAccount is declared as EditableChild having problem in declaring the data access methods too. Because this Editable Child object requires parent object as a parameter to insert and update methods.
Can anybody help me in providing an example code for this situation like this?
Thanks & Regards,
SreeRam.