Plug-in architecture

Posts   
 
    
Syc0F3ar
User
Posts: 14
Joined: 20-Sep-2005
# Posted on: 02-Dec-2005 15:41:29   

I have a requirement and I am wondering what the best way to do this is. I understand how the whole plug-in architecture works and I have implemented something like this before. What I am wondering is if anyone has done something like this using LLBL. Here is an example of what I need. This is a simple example, and not really intended to say that this example should be done this way. This is more of a question of whether this is possible or not and how to go about doing it.

Lets say it is a simple ordering web application. What needs to have the plugin ability is the types of things that can be ordered. In other words, one application may need to be clothing and another would need to be electronic. There would be a base class called "OrderableItem" that all of these would inherit from. So you would have "ClothingOrderableItem" and "ElectronicOrderableItem". Every customer would have the core application installed which would contain the "OrderableItem" class. Different customers would get different plug-ins installed that would have the inherited classes. These plug-ins would also create the necessary tables and such when they are installed into the application. My question is how to go about using LLBL to do something like this.

Can I seperate my database tables into seperate projects in LLBL and have a class in one LLBL project inherit from a class in a different LLBL project? Would the LLBL work correctly when the plugin is installed. When someone is searching for items to order, can I tell it to bring back all "OrderableItem" instances and when the plugin is installed it will know to include it in the search? I hope I have explained it well enough to understand.

Thanks in advance.