public static DataTable GetData(DbConStrInfo conStr, string sql) { if (conStr.ProviderType == ProviderType.MySql) { return(MySqlConnector.GetData(conStr.ConStr, sql)); } else if (conStr.ProviderType == ProviderType.Oracle) { return(OracleConnector.GetData(conStr.ConStr, sql)); } else { return(SqlConnector.GetData(conStr.ConStr, sql)); } }