internal static TypeMap FromOdbcType(OdbcType odbcType) { switch (odbcType) { case OdbcType.BigInt: return(s_bigInt); case OdbcType.Binary: return(s_binary); case OdbcType.Bit: return(s_bit); case OdbcType.Char: return(_Char); case OdbcType.DateTime: return(s_dateTime); case OdbcType.Date: return(s_date); case OdbcType.Time: return(s_time); case OdbcType.Double: return(s_double); case OdbcType.Decimal: return(s_decimal); case OdbcType.Image: return(_Image); case OdbcType.Int: return(s_int); case OdbcType.NChar: return(s_NChar); case OdbcType.NText: return(_NText); case OdbcType.Numeric: return(s_numeric); case OdbcType.NVarChar: return(_NVarChar); case OdbcType.Real: return(s_real); case OdbcType.UniqueIdentifier: return(s_uniqueId); case OdbcType.SmallDateTime: return(s_smallDT); case OdbcType.SmallInt: return(s_smallInt); case OdbcType.Text: return(_Text); case OdbcType.Timestamp: return(s_timestamp); case OdbcType.TinyInt: return(s_tinyInt); case OdbcType.VarBinary: return(s_varBinary); case OdbcType.VarChar: return(_VarChar); default: throw ODBC.UnknownOdbcType(odbcType); } }
internal static TypeMap FromOdbcType(OdbcType odbcType) { switch (odbcType) { case OdbcType.BigInt: return(_BigInt); case OdbcType.Binary: return(_Binary); case OdbcType.Bit: return(_Bit); case OdbcType.Char: return(_Char); case OdbcType.DateTime: return(_DateTime); case OdbcType.Decimal: return(_Decimal); case OdbcType.Numeric: return(_Numeric); case OdbcType.Double: return(_Double); case OdbcType.Image: return(_Image); case OdbcType.Int: return(_Int); case OdbcType.NChar: return(_NChar); case OdbcType.NText: return(_NText); case OdbcType.NVarChar: return(_NVarChar); case OdbcType.Real: return(_Real); case OdbcType.UniqueIdentifier: return(_UniqueId); case OdbcType.SmallDateTime: return(_SmallDT); case OdbcType.SmallInt: return(_SmallInt); case OdbcType.Text: return(_Text); case OdbcType.Timestamp: return(_Timestamp); case OdbcType.TinyInt: return(_TinyInt); case OdbcType.VarBinary: return(_VarBinary); case OdbcType.VarChar: return(_VarChar); case OdbcType.Date: return(_Date); case OdbcType.Time: return(_Time); } throw ODBC.UnknownOdbcType(odbcType); }