donnacha Posted June 4, 2003 Posted June 4, 2003 Hi folks, I have written a 3-tier VB application using MS Access, but would also like to be able to use other databases such as MYSQL or SQL Server without having to change my application. Does anybody have an example of how this can be done without too much pain. Thanks for any help Quote Hamlet
*Gurus* Derek Stone Posted June 4, 2003 *Gurus* Posted June 4, 2003 Create different data access layers (DALs) that conform to one interface. public interface IDataProvider { bool UserExists(); } public class MySqlProvider : IDataProvider { public bool UserExists { } } Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.