示例#1
0
 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;
     }
 }
示例#2
0
 public static MySqlDbType GetMySqlDbType(InfoDbType infoDbType)
 {
     try
     {
         return (MySqlDbType)Enum.Parse(typeof(MySqlDbType), infoDbType.ToString(), true);
     }
     catch
     {
         return MySqlDbType.VarChar;
     }
 }
示例#3
0
 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;
     }
 }
示例#4
0
 public static OracleType GetOracleType(InfoDbType infoDbType)
 {
     try
     {
         return (OracleType)Enum.Parse(typeof(OracleType), infoDbType.ToString(), true);
     }
     catch
     {
         return OracleType.VarChar;
     }
 }