i'm using an architecture called dOOdads. it provides a base "businessentity" class from which derived classes are created that map to each table/view in a database. for example, i have a database with a table called "generics" and another called "specifics". in my project, i have a class called "Generics" that derives from "businessentity". the derived class has a method called "loadall" that populates the object with the database records.
i have a form that needs to display the contents of either "generics" or "specifics". my solution was to give the form a member of type "businessentity". then, when i create the form, i assign an instance of the loaded derived "generics" or "specifics" class to the base class form member.
the problem is that once the form has been opened, i need at some point to call the "loadall" method again. but, since the form member is of type "businessentity", the loadall method is not available.
is there some way that i can call "loadall" from the base class instance?
i have a form that needs to display the contents of either "generics" or "specifics". my solution was to give the form a member of type "businessentity". then, when i create the form, i assign an instance of the loaded derived "generics" or "specifics" class to the base class form member.
the problem is that once the form has been opened, i need at some point to call the "loadall" method again. but, since the form member is of type "businessentity", the loadall method is not available.
is there some way that i can call "loadall" from the base class instance?