Example #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;
     }
 }
Example #2
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;
     }
 }
Example #3
0
 public static OracleType GetOracleType(InfoDbType infoDbType)
 {
     try
     {
         return (OracleType)Enum.Parse(typeof(OracleType), infoDbType.ToString(), true);
     }
     catch
     {
         return OracleType.VarChar;
     }
 }
Example #4
0
 public static MySqlDbType GetMySqlDbType(InfoDbType infoDbType)
 {
     try
     {
         return (MySqlDbType)Enum.Parse(typeof(MySqlDbType), infoDbType.ToString(), true);
     }
     catch
     {
         return MySqlDbType.VarChar;
     }
 }
Example #5
0
 public InfoParameter()
 {
     _sourceVersion = DataRowVersion.Current;
     _direction = ParameterDirection.Input;
     _infoDbType = InfoDbType.VarChar;
 }