Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

Can anybody tell me how to write a class to access different types of databases.
For example now i am using Sqlserver in my project,later i changed to Oracle or other.
the code change should be less.

thanks.
Posted

1 solution

These already exist in the form of IDB* classes in System.Data like IDBCommand etc. see : http://www.c-sharpcorner.com/UploadFile/mbouck/GenericDataAccessCompActivator09052005013346AM/GenericDataAccessCompActivator.aspx[^]
 
Share this answer
 
Comments
Espen Harlinn 16-Nov-12 9:14am    
5'ed!
Mehdi Gholam 16-Nov-12 9:16am    
Cheers Espen!
86k 16-Nov-12 12:37pm    
thanks Mehdi.

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