148 references to OleDbType
System.Data (147)
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (81)
158static private readonly NativeDBType D_Binary = new NativeDBType(0xff, -1, true, false, OleDbType.Binary, NativeDBType.BYTES, S_BINARY, typeof(System.Byte[]), NativeDBType.BYTES, DbType.Binary ); // 0 159static private readonly NativeDBType D_Boolean = new NativeDBType(0xff, 2, true, false, OleDbType.Boolean, NativeDBType.BOOL, S_BOOL, typeof(System.Boolean), NativeDBType.BOOL, DbType.Boolean ); // 1 - integer2 (variant_bool) 160static private readonly NativeDBType D_BSTR = new NativeDBType(0xff, ADP.PtrSize, false, false, OleDbType.BSTR, NativeDBType.BSTR, S_BSTR, typeof(System.String), NativeDBType.BSTR, DbType.String ); // 2 - integer4 (pointer) 161static private readonly NativeDBType D_Char = new NativeDBType(0xff, -1, true, false, OleDbType.Char, NativeDBType.STR, S_CHAR, typeof(System.String), NativeDBType.WSTR/*STR*/, DbType.AnsiStringFixedLength); // 3 - (ansi pointer) 162static private readonly NativeDBType D_Currency = new NativeDBType( 19, 8, true, false, OleDbType.Currency, NativeDBType.CY, S_CY, typeof(System.Decimal), NativeDBType.CY, DbType.Currency ); // 4 - integer8 163static private readonly NativeDBType D_Date = new NativeDBType(0xff, 8, true, false, OleDbType.Date, NativeDBType.DATE, S_DATE, typeof(System.DateTime), NativeDBType.DATE, DbType.DateTime ); // 5 - double 164static private readonly NativeDBType D_DBDate = new NativeDBType(0xff, 6, true, false, OleDbType.DBDate, NativeDBType.DBDATE, S_DBDATE, typeof(System.DateTime), NativeDBType.DBDATE, DbType.Date ); // 6 - (tagDBDate) 165static private readonly NativeDBType D_DBTime = new NativeDBType(0xff, 6, true, false, OleDbType.DBTime, NativeDBType.DBTIME, S_DBTIME, typeof(System.TimeSpan), NativeDBType.DBTIME, DbType.Time ); // 7 - (tagDBTime) 166static private readonly NativeDBType D_DBTimeStamp = new NativeDBType(0xff, 16, true, false, OleDbType.DBTimeStamp, NativeDBType.DBTIMESTAMP, S_DBTIMESTAMP, typeof(System.DateTime), NativeDBType.DBTIMESTAMP, DbType.DateTime ); // 8 - (tagDBTIMESTAMP) 167static private readonly NativeDBType D_Decimal = new NativeDBType( 28, 16, true, false, OleDbType.Decimal, NativeDBType.DECIMAL, S_DECIMAL, typeof(System.Decimal), NativeDBType.DECIMAL, DbType.Decimal ); // 9 - (tagDec) // MDAC 68447 168static private readonly NativeDBType D_Error = new NativeDBType(0xff, 4, true, false, OleDbType.Error, NativeDBType.ERROR, S_ERROR, typeof(System.Int32), NativeDBType.ERROR, DbType.Int32 ); // 10 - integer4 169static private readonly NativeDBType D_Filetime = new NativeDBType(0xff, 8, true, false, OleDbType.Filetime, NativeDBType.FILETIME, S_FILETIME, typeof(System.DateTime), NativeDBType.FILETIME, DbType.DateTime ); // 11 - integer8 // MDAC 59504 170static private readonly NativeDBType D_Guid = new NativeDBType(0xff, 16, true, false, OleDbType.Guid, NativeDBType.GUID, S_GUID, typeof(System.Guid), NativeDBType.GUID, DbType.Guid ); // 12 - ubyte[16] 171static private readonly NativeDBType D_TinyInt = new NativeDBType( 3, 1, true, false, OleDbType.TinyInt, NativeDBType.I1, S_I1, typeof(System.Int16), NativeDBType.I1, DbType.SByte ); // 13 - integer1 // MDAC 59492 172static private readonly NativeDBType D_SmallInt = new NativeDBType( 5, 2, true, false, OleDbType.SmallInt, NativeDBType.I2, S_I2, typeof(System.Int16), NativeDBType.I2, DbType.Int16 ); // 14 - integer2 173static private readonly NativeDBType D_Integer = new NativeDBType( 10, 4, true, false, OleDbType.Integer, NativeDBType.I4, S_I4, typeof(System.Int32), NativeDBType.I4, DbType.Int32 ); // 15 - integer4 174static private readonly NativeDBType D_BigInt = new NativeDBType( 19, 8, true, false, OleDbType.BigInt, NativeDBType.I8, S_I8, typeof(System.Int64), NativeDBType.I8, DbType.Int64 ); // 16 - integer8 175static private readonly NativeDBType D_IDispatch = new NativeDBType(0xff, ADP.PtrSize, true, false, OleDbType.IDispatch, NativeDBType.IDISPATCH, S_IDISPATCH, typeof(System.Object), NativeDBType.IDISPATCH, DbType.Object ); // 17 - integer4 (pointer) 176static private readonly NativeDBType D_IUnknown = new NativeDBType(0xff, ADP.PtrSize, true, false, OleDbType.IUnknown, NativeDBType.IUNKNOWN, S_IUNKNOWN, typeof(System.Object), NativeDBType.IUNKNOWN, DbType.Object ); // 18 - integer4 (pointer) // MDAC 64040 177static private readonly NativeDBType D_LongVarBinary = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarBinary, NativeDBType.BYTES, S_LONGVARBINARY, typeof(System.Byte[]), NativeDBType.BYTES, DbType.Binary ); // 19 178static private readonly NativeDBType D_LongVarChar = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarChar, NativeDBType.STR, S_LONGVARCHAR, typeof(System.String), NativeDBType.WSTR/*STR*/, DbType.AnsiString); // 20 - (ansi pointer) 179static private readonly NativeDBType D_Numeric = new NativeDBType( 28, 19, true, false, OleDbType.Numeric, NativeDBType.NUMERIC, S_NUMERIC, typeof(System.Decimal), NativeDBType.NUMERIC, DbType.Decimal ); // 21 - (tagDB_Numeric) 181true, false, OleDbType.PropVariant, NativeDBType.PROPVARIANT, S_PROPVARIANT, typeof(System.Object), NativeDBType.VARIANT, DbType.Object ); // 22 182static private readonly NativeDBType D_Single = new NativeDBType( 7, 4, true, false, OleDbType.Single, NativeDBType.R4, S_R4, typeof(System.Single), NativeDBType.R4, DbType.Single ); // 23 - single 183static private readonly NativeDBType D_Double = new NativeDBType( 15, 8, true, false, OleDbType.Double, NativeDBType.R8, S_R8, typeof(System.Double), NativeDBType.R8, DbType.Double ); // 24 - double 184static private readonly NativeDBType D_UnsignedTinyInt = new NativeDBType( 3, 1, true, false, OleDbType.UnsignedTinyInt, NativeDBType.UI1, S_UI1, typeof(System.Byte), NativeDBType.UI1, DbType.Byte ); // 25 - byte7 185static private readonly NativeDBType D_UnsignedSmallInt = new NativeDBType( 5, 2, true, false, OleDbType.UnsignedSmallInt, NativeDBType.UI2, S_UI2, typeof(System.Int32), NativeDBType.UI2, DbType.UInt16 ); // 26 - unsigned integer2 186static private readonly NativeDBType D_UnsignedInt = new NativeDBType( 10, 4, true, false, OleDbType.UnsignedInt, NativeDBType.UI4, S_UI4, typeof(System.Int64), NativeDBType.UI4, DbType.UInt32 ); // 27 - unsigned integer4 187static private readonly NativeDBType D_UnsignedBigInt = new NativeDBType( 20, 8, true, false, OleDbType.UnsignedBigInt, NativeDBType.UI8, S_UI8, typeof(System.Decimal), NativeDBType.UI8, DbType.UInt64 ); // 28 - unsigned integer8 188static private readonly NativeDBType D_VarBinary = new NativeDBType(0xff, -1, false, false, OleDbType.VarBinary, NativeDBType.BYTES, S_VARBINARY, typeof(System.Byte[]), NativeDBType.BYTES, DbType.Binary ); // 29 189static private readonly NativeDBType D_VarChar = new NativeDBType(0xff, -1, false, false, OleDbType.VarChar, NativeDBType.STR, S_VARCHAR, typeof(System.String), NativeDBType.WSTR/*STR*/, DbType.AnsiString); // 30 - (ansi pointer) 190static private readonly NativeDBType D_Variant = new NativeDBType(0xff, ODB.SizeOf_Variant, true, false, OleDbType.Variant, NativeDBType.VARIANT, S_VARIANT, typeof(System.Object), NativeDBType.VARIANT, DbType.Object ); // 31 - ubyte[16] (variant) 191static private readonly NativeDBType D_VarNumeric = new NativeDBType( 255, 16, true, false, OleDbType.VarNumeric, NativeDBType.VARNUMERIC, S_VARNUMERIC, typeof(System.Decimal), NativeDBType.DECIMAL, DbType.VarNumeric); // 32 - (unicode pointer) 192static private readonly NativeDBType D_WChar = new NativeDBType(0xff, -1, true, false, OleDbType.WChar, NativeDBType.WSTR, S_WCHAR, typeof(System.String), NativeDBType.WSTR, DbType.StringFixedLength); // 33 - (unicode pointer) 193static private readonly NativeDBType D_VarWChar = new NativeDBType(0xff, -1, false, false, OleDbType.VarWChar, NativeDBType.WSTR, S_WVARCHAR, typeof(System.String), NativeDBType.WSTR, DbType.String ); // 34 - (unicode pointer) 194static private readonly NativeDBType D_LongVarWChar = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarWChar, NativeDBType.WSTR, S_WLONGVARCHAR, typeof(System.String), NativeDBType.WSTR, DbType.String ); // 35 - (unicode pointer) 195static private readonly NativeDBType D_Chapter = new NativeDBType(0xff, ADP.PtrSize, false, false, OleDbType.Empty, NativeDBType.HCHAPTER, S_UDT, typeof(IDataReader), NativeDBType.HCHAPTER, DbType.Object ); // 36 - (hierarchical chaper) 196static private readonly NativeDBType D_Empty = new NativeDBType(0xff, 0, false, false, OleDbType.Empty, NativeDBType.EMPTY, "", null, NativeDBType.EMPTY, DbType.Object ); // 37 - invalid param default 197static private readonly NativeDBType D_Xml = new NativeDBType(0xff, -1, false, false, OleDbType.VarWChar, NativeDBType.XML, S_XML, typeof(System.String), NativeDBType.WSTR, DbType.String ); // 38 - (unicode pointer) 198static private readonly NativeDBType D_Udt = new NativeDBType(0xff, -1, false, false, OleDbType.VarBinary, NativeDBType.UDT, S_BINARY, typeof(System.Byte[]), NativeDBType.BYTES, DbType.Binary ); // 39 - (unicode pointer) 206internal readonly OleDbType enumOleDbType; // enum System.Data.OleDb.OleDbType 221private NativeDBType(Byte maxpre, int fixlen, bool isfixed, bool islong, OleDbType enumOleDbType, short dbType, string dbstring, Type dataType, short wType, DbType enumDbType) { 248static internal NativeDBType FromDataType(OleDbType enumOleDbType) { 250case OleDbType.Empty: return D_Empty; // 0 251case OleDbType.SmallInt: return D_SmallInt; // 2 252case OleDbType.Integer: return D_Integer; // 3 253case OleDbType.Single: return D_Single; // 4 254case OleDbType.Double: return D_Double; // 5 255case OleDbType.Currency: return D_Currency; // 6 256case OleDbType.Date: return D_Date; // 7 257case OleDbType.BSTR: return D_BSTR; // 8 258case OleDbType.IDispatch: return D_IDispatch; // 9 259case OleDbType.Error: return D_Error; // 10 260case OleDbType.Boolean: return D_Boolean; // 11 261case OleDbType.Variant: return D_Variant; // 12 262case OleDbType.IUnknown: return D_IUnknown; // 13 263case OleDbType.Decimal: return D_Decimal; // 14 264case OleDbType.TinyInt: return D_TinyInt; // 16 265case OleDbType.UnsignedTinyInt: return D_UnsignedTinyInt; // 17 266case OleDbType.UnsignedSmallInt: return D_UnsignedSmallInt; // 18 267case OleDbType.UnsignedInt: return D_UnsignedInt; // 19 268case OleDbType.BigInt: return D_BigInt; // 20 269case OleDbType.UnsignedBigInt: return D_UnsignedBigInt; // 21 270case OleDbType.Filetime: return D_Filetime; // 64 271case OleDbType.Guid: return D_Guid; // 72 272case OleDbType.Binary: return D_Binary; // 128 273case OleDbType.Char: return D_Char; // 129 274case OleDbType.WChar: return D_WChar; // 130 275case OleDbType.Numeric: return D_Numeric; // 131 276case OleDbType.DBDate: return D_DBDate; // 133 277case OleDbType.DBTime: return D_DBTime; // 134 278case OleDbType.DBTimeStamp: return D_DBTimeStamp; // 135 279case OleDbType.PropVariant: return D_PropVariant; // 138 280case OleDbType.VarNumeric: return D_VarNumeric; // 139 281case OleDbType.VarChar: return D_VarChar; // 200 282case OleDbType.LongVarChar: return D_LongVarChar; // 201 283case OleDbType.VarWChar: return D_VarWChar; // 202 // MDAC 64983: ORA-12704: character set mismatch 284case OleDbType.LongVarWChar: return D_LongVarWChar; // 203 285case OleDbType.VarBinary: return D_VarBinary; // 204 286case OleDbType.LongVarBinary: return D_LongVarBinary; // 205 360throw ADP.DbTypeNotSupported(dbType, typeof(OleDbType)); // MDAC 66009
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (3)
91static internal Exception UninitializedParameters(int index, OleDbType dbtype) { 214static internal Exception InvalidOleDbType(OleDbType value) { 215return ADP.InvalidEnumerationValue(typeof(OleDbType), (int)value);
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (13)
83p.OleDbType = (OleDbType) valueType; 230case OleDbType.Decimal: 231case OleDbType.Numeric: 232case OleDbType.VarNumeric: 242case OleDbType.VarBinary: // MDAC 72315 243case OleDbType.VarChar: 244case OleDbType.VarWChar: 250parameter.OleDbType = OleDbType.Binary; 256parameter.OleDbType = OleDbType.LongVarBinary; 259parameter.OleDbType = OleDbType.Char; 266parameter.OleDbType = OleDbType.LongVarChar; 269parameter.OleDbType = OleDbType.WChar; 274parameter.OleDbType = OleDbType.LongVarWChar;
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
369newRow[size] = ((info.type.enumOleDbType != OleDbType.BSTR) ? info.size : -1); // MDAC 72653
fx\src\data\System\Data\OleDb\OleDbParameter.cs (13)
37Debug.Assert(!(value is OleDbType), "use OleDbParameter(string, OleDbType)"); 44public OleDbParameter(string name, OleDbType dataType) : this() { 49public OleDbParameter(string name, OleDbType dataType, int size) : this() { 55public OleDbParameter(string name, OleDbType dataType, int size, string srcColumn) : this() { 64OleDbType dbType, int size, 83OleDbType dbType, int size, 129public OleDbType OleDbType { 264if (OleDbType.Empty == dbtype.enumOleDbType) { 596ctorParams = new Type[] { typeof(string), typeof(OleDbType) }; 601ctorParams = new Type[] { typeof(string), typeof(OleDbType), typeof(int) }; 608ctorParams = new Type[] { typeof(string), typeof(OleDbType), typeof(int), typeof(string) }; 618typeof(string), typeof(OleDbType), typeof(int), typeof(ParameterDirection), 628typeof(string), typeof(OleDbType), typeof(int), typeof(ParameterDirection),
fx\src\data\System\Data\OleDb\OleDbParameterCollection.cs (3)
78public OleDbParameter Add(string parameterName, OleDbType oleDbType) { 82public OleDbParameter Add(string parameterName, OleDbType oleDbType, int size) { 86public OleDbParameter Add(string parameterName, OleDbType oleDbType, int size, string sourceColumn) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (33)
537switch ((OleDbType)dbType) { 538case OleDbType.BigInt: 541case OleDbType.Boolean: 544case OleDbType.Char: 545case OleDbType.VarChar: 549case OleDbType.Currency: 552case OleDbType.Date: 553case OleDbType.DBTimeStamp: 554case OleDbType.Filetime: 567case OleDbType.Decimal: 568case OleDbType.Numeric: 571case OleDbType.Double: 574case OleDbType.Guid: 577case OleDbType.Integer: 580case OleDbType.LongVarBinary: 583case OleDbType.LongVarChar: 586case OleDbType.LongVarWChar: 589case OleDbType.Single: 592case OleDbType.SmallInt: 593case OleDbType.UnsignedSmallInt: 596case OleDbType.TinyInt: 597case OleDbType.UnsignedTinyInt: 600case OleDbType.VarBinary: 601case OleDbType.Binary: 604case OleDbType.Variant: 607case OleDbType.VarWChar: 608case OleDbType.WChar: 609case OleDbType.BSTR: 614case OleDbType.DBDate: // Date 617case (OleDbType)132: // Udt 620case (OleDbType)141: // Xml 623case (OleDbType)145: // Time 626case (OleDbType)146: // DateTimeOffset
System.Workflow.Runtime (1)
Hosting\DbResourceAllocator.cs (1)
257return new OleDbParameter(parameterName, OleDbType.BigInt);