Well yes,
Since I want support for different database types, I need to use the adapter paradigm thus the LLBLGenProDataSource2 control, isn't it?
I played around by creating a class which implements IDataAccessAdapter and acts as a wrapper for the adapters generated automatically by LLBLGen. The constructor of the class, reads web.config and instantiates the correct type of the adapter, saving the instance to a private field. It then simply delegates every call to the respective method of this internal instance.
I put the class in App_Code and after building the website, I was able to see my custom Adapter in the list of the available adapters in the datasource configuration dialog box. But when I select the custom adapter the selection is not saved and the datasource is not being configured. If I type the class name manually at the source, the designer throws an exception on this control.
I tried to pack the custom adapter in a dll through a separate project but nothing changed.
The thing is, that when I instantiate my custom adapter in a C# file and manually retrieve a collection and bind it to a control, it works like a charm! But that's just the proven factory pattern.
Any thoughts?
Chris
PS I expect to have a licensed version of the software sometime next week (company paperwork!) so I hope I will be able to digg into it more seriously.