public static Sybase.Data.AseClient.AseDbType GetAseType(InfoDbType infoDbType) { try { return (Sybase.Data.AseClient.AseDbType)Enum.Parse(typeof(Sybase.Data.AseClient.AseDbType), infoDbType.ToString(), true); } catch { return Sybase.Data.AseClient.AseDbType.VarChar; } }
public static MySqlDbType GetMySqlDbType(InfoDbType infoDbType) { try { return (MySqlDbType)Enum.Parse(typeof(MySqlDbType), infoDbType.ToString(), true); } catch { return MySqlDbType.VarChar; } }
public static IBM.Data.Informix.IfxType GetIfxType(InfoDbType infoDbType) { try { return (IBM.Data.Informix.IfxType)Enum.Parse(typeof(IBM.Data.Informix.IfxType), infoDbType.ToString(), true); } catch { return IBM.Data.Informix.IfxType.VarChar; } }
public static OracleType GetOracleType(InfoDbType infoDbType) { try { return (OracleType)Enum.Parse(typeof(OracleType), infoDbType.ToString(), true); } catch { return OracleType.VarChar; } }