Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have an application which I would like to make more portable. Basically my application works like a treat using just sql server, what I would like to do is make it usable with all the other DBMS systems out there. I'm just wondering the best way to achieve this using the correct O.O.P design and implementation.

Thanks in advance guys.
Posted
Comments
Jörgen Andersson 27-Mar-14 4:19am    
I'll recommend Reading this article: http://www.codeproject.com/Articles/55890/Don-t-hard-code-your-DataProviders

1 solution

Leverage the Interfaces: IDbConnection, IDbCommand, IDataParameter, IDataReader rather than using the specific classes.
But you'll still have to deal with differences in SQL syntax or stick to only standard syntax.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900