We have a requirement that our code work with different types of databases, including possibly some that haven't yet been invented. The actual database will not be known until run time, when a user will be presented with a listbox of names, and a connection string will be selected based on the user's choice. Our preferred database is PostgreSQL, but we need to support SQL Server, Oracle, DB2, and anything else our customers may require, all without changing our code. ODBC allows us to do this because the database is actually described in a DSN, and all the connection string has to do is to specify which DSN to look at. OLE DB could allow us to do it because the actual provider can be specified in the connection string.
Can LLBLGen work with this requirement? I noticed that if I select SelfServicing when I generate code, I can then use a method in DbUtils to select a connection string at run time. But can the generated code work with a PostgreSQL database one time, and then the next time work with a SQL Server database merely because the connection string changed?
Thank you very much.
RobR