public static DBWrapper GetADONETWrapper(string sProviderName) { DBWrapper oDB = null; switch (sProviderName.Trim().ToUpper()) { case "OLEDB": oDB = DBWrapper.GetOleDbWrapper(); break; case "SQLCLIENT": oDB = DBWrapper.GetSqlClientWrapper(); break; case "ODBC": oDB = DBWrapper.GetOdbcWrapper(); break; case "ORACLECLIENT": oDB = DBWrapper.GetOracleWrapper(); break; default: oDB = DBWrapper.GetADONETWrapper(); break; } return(oDB); }