Keeping an application database agnostic (ADO.NET vs encapsulating DB logic)
问题 We are making a fairly serious application that needs to remain agnostic to the DB a client wants to use. Initially we plan on supporting MySQL, Oracle & SQL Server. The tables & views are simple as are the queries (no real fancy SQL), therefore the question: Use native DB drivers (MySQLDbConnection etc.) and encapsulate the logic of executing queries and processing results or Use a generic OleDbConnection Obviously option 2 involves no overhead, but I presuming the performance is not as