39 instantiations of NativeDBType
System.Data (39)
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (39)
158
static 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
159
static 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)
160
static 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)
161
static 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)
162
static 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
163
static 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
164
static 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)
165
static 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)
166
static 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)
167
static 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
168
static 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
169
static 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
170
static 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]
171
static 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
172
static 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
173
static 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
174
static 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
175
static 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)
176
static 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
177
static 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
178
static 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)
179
static 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)
182
static 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
183
static 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
184
static 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
185
static 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
186
static 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
187
static 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
188
static 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
189
static 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)
190
static 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)
191
static 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)
192
static 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)
193
static 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)
194
static 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)
195
static 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)
196
static private readonly NativeDBType D_Empty = new
NativeDBType
(0xff, 0, false, false, OleDbType.Empty, NativeDBType.EMPTY, "", null, NativeDBType.EMPTY, DbType.Object ); // 37 - invalid param default
197
static 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)
198
static 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)
395 references to NativeDBType
System.Data (395)
fx\src\data\System\Data\OleDb\ColumnBinding.cs (189)
119
get { return
NativeDBType
.FromDBType(DbType, false, false).dataType; }
157
|| (((
NativeDBType
.VARIANT == DbType) || (
NativeDBType
.PROPVARIANT == DbType))
247
case
NativeDBType
.EMPTY:
248
case
NativeDBType
.NULL:
251
case
NativeDBType
.I2:
254
case
NativeDBType
.I4:
257
case
NativeDBType
.R4:
260
case
NativeDBType
.R8:
263
case
NativeDBType
.CY:
266
case
NativeDBType
.DATE:
269
case
NativeDBType
.BSTR:
272
case
NativeDBType
.IDISPATCH:
275
case
NativeDBType
.ERROR:
278
case
NativeDBType
.BOOL:
281
case
NativeDBType
.VARIANT:
284
case
NativeDBType
.IUNKNOWN:
287
case
NativeDBType
.DECIMAL:
290
case
NativeDBType
.I1:
293
case
NativeDBType
.UI1:
296
case
NativeDBType
.UI2:
299
case
NativeDBType
.UI4:
302
case
NativeDBType
.I8:
305
case
NativeDBType
.UI8:
308
case
NativeDBType
.FILETIME:
311
case
NativeDBType
.GUID:
314
case
NativeDBType
.BYTES:
317
case
NativeDBType
.WSTR:
320
case
NativeDBType
.NUMERIC:
323
case
NativeDBType
.DBDATE:
326
case
NativeDBType
.DBTIME:
329
case
NativeDBType
.DBTIMESTAMP:
332
case
NativeDBType
.PROPVARIANT:
335
case
NativeDBType
.HCHAPTER:
338
case (
NativeDBType
.BYREF |
NativeDBType
.BYTES):
341
case (
NativeDBType
.BYREF |
NativeDBType
.WSTR):
364
case
NativeDBType
.BYTES:
367
case
NativeDBType
.WSTR:
370
case (
NativeDBType
.BYREF |
NativeDBType
.BYTES):
373
case (
NativeDBType
.BYREF |
NativeDBType
.WSTR):
407
case
NativeDBType
.EMPTY:
410
case
NativeDBType
.NULL: // language null - no representation, use DBNull
413
case
NativeDBType
.I2:
416
case
NativeDBType
.I4:
419
case
NativeDBType
.R4:
422
case
NativeDBType
.R8:
425
case
NativeDBType
.CY:
428
case
NativeDBType
.DATE:
431
case
NativeDBType
.BSTR:
434
case
NativeDBType
.IDISPATCH:
437
case
NativeDBType
.ERROR:
440
case
NativeDBType
.BOOL:
443
case
NativeDBType
.VARIANT:
446
case
NativeDBType
.IUNKNOWN:
449
case
NativeDBType
.DECIMAL:
452
case
NativeDBType
.I1:
460
case
NativeDBType
.UI1:
463
case
NativeDBType
.UI2:
471
case
NativeDBType
.UI4:
479
case
NativeDBType
.I8:
482
case
NativeDBType
.UI8:
490
case
NativeDBType
.FILETIME:
493
case
NativeDBType
.GUID:
496
case
NativeDBType
.BYTES:
499
case
NativeDBType
.WSTR:
507
case
NativeDBType
.NUMERIC:
510
case
NativeDBType
.DBDATE:
513
case
NativeDBType
.DBTIME:
516
case
NativeDBType
.DBTIMESTAMP:
519
case
NativeDBType
.PROPVARIANT:
522
case (
NativeDBType
.BYREF |
NativeDBType
.BYTES):
525
case (
NativeDBType
.BYREF |
NativeDBType
.WSTR):
557
Debug.Assert((
NativeDBType
.BOOL == DbType), "Value_BOOL");
563
Debug.Assert((
NativeDBType
.BOOL == DbType), "Value_BOOL");
570
Debug.Assert((
NativeDBType
.BSTR == DbType), "Value_BSTR");
592
Debug.Assert((
NativeDBType
.BSTR == DbType), "Value_BSTR");
599
Debug.Assert(((
NativeDBType
.BYREF |
NativeDBType
.BYTES) == DbType), "Value_ByRefBYTES");
622
Debug.Assert((
NativeDBType
.BYREF |
NativeDBType
.BYTES) == DbType, "Value_ByRefBYTES");
640
Debug.Assert((
NativeDBType
.BYREF |
NativeDBType
.WSTR) == DbType, "Value_ByRefWSTR");
663
Debug.Assert((
NativeDBType
.BYREF |
NativeDBType
.WSTR) == DbType, "Value_ByRefWSTR");
680
Debug.Assert((
NativeDBType
.BYREF |
NativeDBType
.WSTR) == DbType, "Value_ByRefWSTR");
697
Debug.Assert(
NativeDBType
.BYTES == DbType, "Value_BYTES");
716
Debug.Assert(
NativeDBType
.CY == DbType, "Value_CY");
721
Debug.Assert(
NativeDBType
.CY == DbType, "Value_CY");
728
Debug.Assert(
NativeDBType
.DATE == DbType, "Value_DATE");
733
Debug.Assert(
NativeDBType
.DATE == DbType, "Value_DATE");
740
Debug.Assert(
NativeDBType
.DBDATE == DbType, "Value_DBDATE");
745
Debug.Assert(
NativeDBType
.DBDATE == DbType, "Value_DATE");
752
Debug.Assert(
NativeDBType
.DBTIME == DbType, "Value_DBTIME");
757
Debug.Assert(
NativeDBType
.DBTIME == DbType, "Value_DBTIME");
764
Debug.Assert(
NativeDBType
.DBTIMESTAMP == DbType, "Value_DBTIMESTAMP");
769
Debug.Assert(
NativeDBType
.DBTIMESTAMP == DbType, "Value_DBTIMESTAMP");
776
Debug.Assert(
NativeDBType
.DECIMAL == DbType, "Value_DECIMAL");
788
Debug.Assert(
NativeDBType
.DECIMAL == DbType, "Value_DECIMAL");
807
Debug.Assert(
NativeDBType
.ERROR == DbType, "Value_ERROR");
812
Debug.Assert(
NativeDBType
.ERROR == DbType, "Value_ERROR");
819
Debug.Assert(
NativeDBType
.FILETIME == DbType, "Value_FILETIME");
825
Debug.Assert(
NativeDBType
.FILETIME == DbType, "Value_FILETIME");
833
Debug.Assert(
NativeDBType
.GUID == DbType, "Value_GUID");
838
Debug.Assert(
NativeDBType
.GUID == DbType, "Value_GUID");
846
Debug.Assert(
NativeDBType
.HCHAPTER == DbType, "Value_HCHAPTER");
853
Debug.Assert(
NativeDBType
.I1 == DbType, "Value_I1");
859
Debug.Assert(
NativeDBType
.I1 == DbType, "Value_I1");
866
Debug.Assert(
NativeDBType
.I2 == DbType, "Value_I2");
871
Debug.Assert(
NativeDBType
.I2 == DbType, "Value_I2");
878
Debug.Assert(
NativeDBType
.I4 == DbType, "Value_I4");
883
Debug.Assert(
NativeDBType
.I4 == DbType, "Value_I4");
890
Debug.Assert(
NativeDBType
.I8 == DbType, "Value_I8");
895
Debug.Assert(
NativeDBType
.I8 == DbType, "Value_I8");
902
Debug.Assert(
NativeDBType
.IDISPATCH == DbType, "Value_IDISPATCH");
923
Debug.Assert(
NativeDBType
.IDISPATCH == DbType, "Value_IDISPATCH");
931
Debug.Assert(
NativeDBType
.IUNKNOWN == DbType, "Value_IUNKNOWN");
952
Debug.Assert(
NativeDBType
.IUNKNOWN == DbType, "Value_IUNKNOWN");
960
Debug.Assert(
NativeDBType
.NUMERIC == DbType, "Value_NUMERIC");
965
Debug.Assert(
NativeDBType
.NUMERIC == DbType, "Value_NUMERIC");
979
Debug.Assert(
NativeDBType
.R4 == DbType, "Value_R4");
985
Debug.Assert(
NativeDBType
.R4 == DbType, "Value_R4");
992
Debug.Assert(
NativeDBType
.R8 == DbType, "Value_R8");
998
Debug.Assert(
NativeDBType
.R8 == DbType, "Value_I4");
1005
Debug.Assert(
NativeDBType
.UI1 == DbType, "Value_UI1");
1010
Debug.Assert(
NativeDBType
.UI1 == DbType, "Value_UI1");
1017
Debug.Assert(
NativeDBType
.UI2 == DbType, "Value_UI2");
1022
Debug.Assert(
NativeDBType
.UI2 == DbType, "Value_UI2");
1029
Debug.Assert(
NativeDBType
.UI4 == DbType, "Value_UI4");
1034
Debug.Assert(
NativeDBType
.UI4 == DbType, "Value_UI4");
1041
Debug.Assert(
NativeDBType
.UI8 == DbType, "Value_UI8");
1046
Debug.Assert(
NativeDBType
.UI8 == DbType, "Value_UI8");
1053
Debug.Assert(
NativeDBType
.WSTR == DbType, "Value_WSTR");
1061
Debug.Assert(
NativeDBType
.WSTR == DbType, "Value_WSTR");
1074
Debug.Assert(
NativeDBType
.WSTR == DbType, "Value_WSTR");
1085
Debug.Assert((
NativeDBType
.VARIANT == DbType) || (
NativeDBType
.PROPVARIANT == DbType), "Value_VARIANT");
1090
Debug.Assert((
NativeDBType
.VARIANT == DbType) || (
NativeDBType
.PROPVARIANT == DbType), "Value_VARIANT");
1101
case
NativeDBType
.BOOL:
1104
case
NativeDBType
.VARIANT:
1123
case
NativeDBType
.BYTES:
1126
case
NativeDBType
.VARIANT:
1129
case (
NativeDBType
.BYREF |
NativeDBType
.BYTES):
1138
case
NativeDBType
.BYTES:
1141
case (
NativeDBType
.BYREF |
NativeDBType
.BYTES):
1161
case
NativeDBType
.UI1:
1164
case
NativeDBType
.VARIANT:
1183
case
NativeDBType
.HCHAPTER:
1203
case
NativeDBType
.DATE:
1206
case
NativeDBType
.DBDATE:
1209
case
NativeDBType
.DBTIMESTAMP:
1212
case
NativeDBType
.FILETIME:
1215
case
NativeDBType
.VARIANT:
1233
case
NativeDBType
.CY:
1236
case
NativeDBType
.DECIMAL:
1239
case
NativeDBType
.NUMERIC:
1242
case
NativeDBType
.UI8:
1245
case
NativeDBType
.VARIANT:
1263
case
NativeDBType
.GUID:
1281
case
NativeDBType
.I2:
1284
case
NativeDBType
.I1:
1287
case
NativeDBType
.VARIANT:
1311
case
NativeDBType
.I4:
1314
case
NativeDBType
.UI2:
1317
case
NativeDBType
.VARIANT:
1341
case
NativeDBType
.I8:
1344
case
NativeDBType
.UI4:
1347
case
NativeDBType
.VARIANT:
1371
case
NativeDBType
.R4:
1374
case
NativeDBType
.VARIANT:
1392
case
NativeDBType
.R8:
1395
case
NativeDBType
.VARIANT:
1414
case
NativeDBType
.BSTR:
1417
case
NativeDBType
.VARIANT:
1420
case
NativeDBType
.WSTR:
1423
case (
NativeDBType
.BYREF |
NativeDBType
.WSTR):
1432
case
NativeDBType
.WSTR:
1435
case (
NativeDBType
.BYREF |
NativeDBType
.WSTR):
fx\src\data\System\Data\OleDb\DBBindings.cs (8)
173
case (
NativeDBType
.BSTR): // ADP.PtrSize
174
case (
NativeDBType
.HCHAPTER): // ADP.PtrSize
175
case (
NativeDBType
.PROPVARIANT): // sizeof(PROPVARIANT)
176
case (
NativeDBType
.VARIANT): // 16 or 24 (8 + ADP.PtrSize *2)
177
case (
NativeDBType
.BYREF |
NativeDBType
.BYTES): // ADP.PtrSize
178
case (
NativeDBType
.BYREF |
NativeDBType
.WSTR): // ADP.PtrSize
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (147)
158
static 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
159
static 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)
160
static 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)
161
static 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)
162
static 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
163
static 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
164
static 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)
165
static 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)
166
static 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)
167
static 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
168
static 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
169
static 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
170
static 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]
171
static 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
172
static 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
173
static 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
174
static 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
175
static 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)
176
static 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
177
static 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
178
static 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)
179
static 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)
180
static private readonly
NativeDBType
D_PropVariant = new NativeDBType(0xff, NativeOledbWrapper.SizeOfPROPVARIANT,
181
true, false, OleDbType.PropVariant,
NativeDBType
.PROPVARIANT, S_PROPVARIANT, typeof(System.Object),
NativeDBType
.VARIANT, DbType.Object ); // 22
182
static 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
183
static 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
184
static 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
185
static 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
186
static 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
187
static 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
188
static 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
189
static 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)
190
static 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)
191
static 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)
192
static 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)
193
static 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)
194
static 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)
195
static 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)
196
static private readonly
NativeDBType
D_Empty = new NativeDBType(0xff, 0, false, false, OleDbType.Empty,
NativeDBType
.EMPTY, "", null,
NativeDBType
.EMPTY, DbType.Object ); // 37 - invalid param default
197
static 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)
198
static 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)
200
static internal readonly
NativeDBType
Default = D_VarWChar; // MDAC 65324
248
static internal
NativeDBType
FromDataType(OleDbType enumOleDbType) {
292
static internal
NativeDBType
FromSystemType(object value) {
296
case TypeCode.Empty: return
NativeDBType
.D_Empty;
297
case TypeCode.Object: return
NativeDBType
.D_Variant;
299
case TypeCode.Boolean: return
NativeDBType
.D_Boolean;
300
case TypeCode.Char: return
NativeDBType
.D_Char;
301
case TypeCode.SByte: return
NativeDBType
.D_TinyInt;
302
case TypeCode.Byte: return
NativeDBType
.D_UnsignedTinyInt;
303
case TypeCode.Int16: return
NativeDBType
.D_SmallInt;
304
case TypeCode.UInt16: return
NativeDBType
.D_UnsignedSmallInt;
305
case TypeCode.Int32: return
NativeDBType
.D_Integer;
306
case TypeCode.UInt32: return
NativeDBType
.D_UnsignedInt;
307
case TypeCode.Int64: return
NativeDBType
.D_BigInt;
308
case TypeCode.UInt64: return
NativeDBType
.D_UnsignedBigInt;
309
case TypeCode.Single: return
NativeDBType
.D_Single;
310
case TypeCode.Double: return
NativeDBType
.D_Double;
311
case TypeCode.Decimal: return
NativeDBType
.D_Decimal;
312
case TypeCode.DateTime: return
NativeDBType
.D_DBTimeStamp;
313
case TypeCode.String: return
NativeDBType
.D_VarWChar;
318
return
NativeDBType
.D_VarBinary;
321
return
NativeDBType
.D_Guid;
324
return
NativeDBType
.D_DBTime;
327
return
NativeDBType
.D_Variant;
332
static internal
NativeDBType
FromDbType(DbType dbType) {
364
static internal
NativeDBType
FromDBType(short dbType, bool isLong, bool isFixed) {
407
if (0 != (
NativeDBType
.VECTOR & dbType)) {
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (1)
224
parameter.OleDbType =
NativeDBType
.FromDBType(wType, false, false).enumOleDbType;
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (12)
485
if (filterChapters && (
NativeDBType
.HCHAPTER == dbColumnInfo.wType)) {
491
NativeDBType
dbType =
NativeDBType
.FromDBType(dbColumnInfo.wType, islong, isfixed);
1448
Debug.Assert(
NativeDBType
.STR != getType, "Should have bound as WSTR");
1449
Debug.Assert(!
NativeDBType
.HasHighBit(getType), "CreateAccessor - unexpected high bits on datatype");
1454
getType = (short)((ushort) getType | (ushort)
NativeDBType
.BYREF);
1469
getType = (short)((ushort) getType | (ushort)
NativeDBType
.BYREF);
1471
else if ((
NativeDBType
.WSTR == getType) && (-1 != info.size)) { // WebData 99298
1486
getType = (short)((ushort) getType | (ushort)
NativeDBType
.BYREF);
2113
NativeDBType
dbType =
NativeDBType
.FromDBType(wType, islong, isfixed);
2289
internal
NativeDBType
type;
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (2)
405
NativeDBType
nativeType =
NativeDBType
.FromDBType(nativeDataType,(bool)newRow[isLong], (bool)newRow[isFixed]);
fx\src\data\System\Data\OleDb\OleDbParameter.cs (28)
23
private
NativeDBType
_metaType;
31
private
NativeDBType
_coerceMetaType;
111
NativeDBType
dbtype = _metaType;
114
_metaType =
NativeDBType
.FromDbType(value);
134
NativeDBType
dbtype = _metaType;
137
_metaType =
NativeDBType
.FromDataType(value);
263
NativeDBType
dbtype = GetBindType(value);
301
if (
NativeDBType
.STR == dbtype.dbType) {
304
else if (
NativeDBType
.WSTR == dbtype.dbType) {
311
wtype |=
NativeDBType
.BYREF;
328
if (
NativeDBType
.WSTR == dbtype.wType) {
333
Debug.Assert(
NativeDBType
.STR != dbtype.wType, "should have ANSI binding, describing is okay");
338
if (
NativeDBType
.STR == dbtype.dbType) { // WebData 98140
346
wtype |=
NativeDBType
.BYREF;
350
if (
NativeDBType
.WSTR == wtype) { // allow space for null termination character
355
Debug.Assert(
NativeDBType
.STR != dbtype.wType, "should have ANSI binding, describing is okay");
361
wtype |=
NativeDBType
.BYREF;
408
private static object CoerceValue(object value,
NativeDBType
destinationType) {
416
else if ((
NativeDBType
.CY == destinationType.dbType) && (typeof(string) == currentType)) {
436
private
NativeDBType
GetBindType(object value) {
437
NativeDBType
dbtype = _metaType;
440
dbtype = OleDb.
NativeDBType
.Default;
443
dbtype =
NativeDBType
.FromSystemType(value);
459
NativeDBType
metaType = _metaType;
462
|| ((
NativeDBType
.DECIMAL == metaType.dbType) || (
NativeDBType
.NUMERIC == metaType.dbType)
479
else if (!ShouldSerializePrecision() && !ShouldSerializeScale() && ((
NativeDBType
.DECIMAL == _metaType.wType) || (
NativeDBType
.NUMERIC == _metaType.wType))) { // MDAC 71441
fx\src\data\System\Data\OleDb\RowBinding.cs (8)
362
case (
NativeDBType
.BYREF |
NativeDBType
.BYTES):
363
case (
NativeDBType
.BYREF |
NativeDBType
.WSTR):
367
case
NativeDBType
.PROPVARIANT:
371
case
NativeDBType
.VARIANT:
375
case
NativeDBType
.BSTR:
379
case
NativeDBType
.HCHAPTER: