148 references to OleDbType
System.Data (147)
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (81)
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)
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)
206
internal readonly
OleDbType
enumOleDbType; // enum System.Data.OleDb.OleDbType
221
private NativeDBType(Byte maxpre, int fixlen, bool isfixed, bool islong,
OleDbType
enumOleDbType, short dbType, string dbstring, Type dataType, short wType, DbType enumDbType) {
248
static internal NativeDBType FromDataType(
OleDbType
enumOleDbType) {
250
case
OleDbType
.Empty: return D_Empty; // 0
251
case
OleDbType
.SmallInt: return D_SmallInt; // 2
252
case
OleDbType
.Integer: return D_Integer; // 3
253
case
OleDbType
.Single: return D_Single; // 4
254
case
OleDbType
.Double: return D_Double; // 5
255
case
OleDbType
.Currency: return D_Currency; // 6
256
case
OleDbType
.Date: return D_Date; // 7
257
case
OleDbType
.BSTR: return D_BSTR; // 8
258
case
OleDbType
.IDispatch: return D_IDispatch; // 9
259
case
OleDbType
.Error: return D_Error; // 10
260
case
OleDbType
.Boolean: return D_Boolean; // 11
261
case
OleDbType
.Variant: return D_Variant; // 12
262
case
OleDbType
.IUnknown: return D_IUnknown; // 13
263
case
OleDbType
.Decimal: return D_Decimal; // 14
264
case
OleDbType
.TinyInt: return D_TinyInt; // 16
265
case
OleDbType
.UnsignedTinyInt: return D_UnsignedTinyInt; // 17
266
case
OleDbType
.UnsignedSmallInt: return D_UnsignedSmallInt; // 18
267
case
OleDbType
.UnsignedInt: return D_UnsignedInt; // 19
268
case
OleDbType
.BigInt: return D_BigInt; // 20
269
case
OleDbType
.UnsignedBigInt: return D_UnsignedBigInt; // 21
270
case
OleDbType
.Filetime: return D_Filetime; // 64
271
case
OleDbType
.Guid: return D_Guid; // 72
272
case
OleDbType
.Binary: return D_Binary; // 128
273
case
OleDbType
.Char: return D_Char; // 129
274
case
OleDbType
.WChar: return D_WChar; // 130
275
case
OleDbType
.Numeric: return D_Numeric; // 131
276
case
OleDbType
.DBDate: return D_DBDate; // 133
277
case
OleDbType
.DBTime: return D_DBTime; // 134
278
case
OleDbType
.DBTimeStamp: return D_DBTimeStamp; // 135
279
case
OleDbType
.PropVariant: return D_PropVariant; // 138
280
case
OleDbType
.VarNumeric: return D_VarNumeric; // 139
281
case
OleDbType
.VarChar: return D_VarChar; // 200
282
case
OleDbType
.LongVarChar: return D_LongVarChar; // 201
283
case
OleDbType
.VarWChar: return D_VarWChar; // 202 // MDAC 64983: ORA-12704: character set mismatch
284
case
OleDbType
.LongVarWChar: return D_LongVarWChar; // 203
285
case
OleDbType
.VarBinary: return D_VarBinary; // 204
286
case
OleDbType
.LongVarBinary: return D_LongVarBinary; // 205
360
throw ADP.DbTypeNotSupported(dbType, typeof(
OleDbType
)); // MDAC 66009
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (3)
91
static internal Exception UninitializedParameters(int index,
OleDbType
dbtype) {
214
static internal Exception InvalidOleDbType(
OleDbType
value) {
215
return ADP.InvalidEnumerationValue(typeof(
OleDbType
), (int)value);
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (13)
83
p.OleDbType = (
OleDbType
) valueType;
230
case
OleDbType
.Decimal:
231
case
OleDbType
.Numeric:
232
case
OleDbType
.VarNumeric:
242
case
OleDbType
.VarBinary: // MDAC 72315
243
case
OleDbType
.VarChar:
244
case
OleDbType
.VarWChar:
250
parameter.OleDbType =
OleDbType
.Binary;
256
parameter.OleDbType =
OleDbType
.LongVarBinary;
259
parameter.OleDbType =
OleDbType
.Char;
266
parameter.OleDbType =
OleDbType
.LongVarChar;
269
parameter.OleDbType =
OleDbType
.WChar;
274
parameter.OleDbType =
OleDbType
.LongVarWChar;
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
369
newRow[size] = ((info.type.enumOleDbType !=
OleDbType
.BSTR) ? info.size : -1); // MDAC 72653
fx\src\data\System\Data\OleDb\OleDbParameter.cs (13)
37
Debug.Assert(!(value is
OleDbType
), "use OleDbParameter(string, OleDbType)");
44
public OleDbParameter(string name,
OleDbType
dataType) : this() {
49
public OleDbParameter(string name,
OleDbType
dataType, int size) : this() {
55
public OleDbParameter(string name,
OleDbType
dataType, int size, string srcColumn) : this() {
64
OleDbType
dbType, int size,
83
OleDbType
dbType, int size,
129
public
OleDbType
OleDbType {
264
if (
OleDbType
.Empty == dbtype.enumOleDbType) {
596
ctorParams = new Type[] { typeof(string), typeof(
OleDbType
) };
601
ctorParams = new Type[] { typeof(string), typeof(
OleDbType
), typeof(int) };
608
ctorParams = new Type[] { typeof(string), typeof(
OleDbType
), typeof(int), typeof(string) };
618
typeof(string), typeof(
OleDbType
), typeof(int), typeof(ParameterDirection),
628
typeof(string), typeof(
OleDbType
), typeof(int), typeof(ParameterDirection),
fx\src\data\System\Data\OleDb\OleDbParameterCollection.cs (3)
78
public OleDbParameter Add(string parameterName,
OleDbType
oleDbType) {
82
public OleDbParameter Add(string parameterName,
OleDbType
oleDbType, int size) {
86
public OleDbParameter Add(string parameterName,
OleDbType
oleDbType, int size, string sourceColumn) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (33)
537
switch ((
OleDbType
)dbType) {
538
case
OleDbType
.BigInt:
541
case
OleDbType
.Boolean:
544
case
OleDbType
.Char:
545
case
OleDbType
.VarChar:
549
case
OleDbType
.Currency:
552
case
OleDbType
.Date:
553
case
OleDbType
.DBTimeStamp:
554
case
OleDbType
.Filetime:
567
case
OleDbType
.Decimal:
568
case
OleDbType
.Numeric:
571
case
OleDbType
.Double:
574
case
OleDbType
.Guid:
577
case
OleDbType
.Integer:
580
case
OleDbType
.LongVarBinary:
583
case
OleDbType
.LongVarChar:
586
case
OleDbType
.LongVarWChar:
589
case
OleDbType
.Single:
592
case
OleDbType
.SmallInt:
593
case
OleDbType
.UnsignedSmallInt:
596
case
OleDbType
.TinyInt:
597
case
OleDbType
.UnsignedTinyInt:
600
case
OleDbType
.VarBinary:
601
case
OleDbType
.Binary:
604
case
OleDbType
.Variant:
607
case
OleDbType
.VarWChar:
608
case
OleDbType
.WChar:
609
case
OleDbType
.BSTR:
614
case
OleDbType
.DBDate: // Date
617
case (
OleDbType
)132: // Udt
620
case (
OleDbType
)141: // Xml
623
case (
OleDbType
)145: // Time
626
case (
OleDbType
)146: // DateTimeOffset
System.Workflow.Runtime (1)
Hosting\DbResourceAllocator.cs (1)
257
return new OleDbParameter(parameterName,
OleDbType
.BigInt);