197 references to DbType
Microsoft.ML.Data (55)
DataLoadSave\Database\DatabaseLoader.cs (11)
190
/// <param name="dbType"><see cref="
DbType
"/> of the items in the column.</param>
192
public Column(string name,
DbType
dbType, int index)
201
/// <param name="dbType"><see cref="
DbType
"/> of the items in the column.</param>
204
public Column(string name,
DbType
dbType, int minIndex, int maxIndex)
213
/// <param name="dbType"><see cref="
DbType
"/> of the items in the column.</param>
216
public Column(string name,
DbType
dbType, Range[] source, KeyCount keyCount = null)
234
/// <see cref="
DbType
"/> of the items in the column.
237
public
DbType
Type =
DbType
.Single;
499
ch.CheckUserArg(Enum.IsDefined(typeof(
DbType
), col.Type), nameof(Column.Type), "Bad item type");
683
private static KeyDataViewType ConstructKeyType(
DbType
dbType, KeyCount keyCount)
DataLoadSave\Database\DbExtensions.cs (44)
13
/// Maps a <see cref="
DbType
"/> to the associated .Net representation type.
15
public static Type ToType(this
DbType
dbType)
19
case
DbType
.AnsiString:
20
case
DbType
.AnsiStringFixedLength:
21
case
DbType
.String:
22
case
DbType
.StringFixedLength:
24
case
DbType
.Binary:
26
case
DbType
.Boolean:
28
case
DbType
.Byte:
30
case
DbType
.Date:
31
case
DbType
.DateTime:
32
case
DbType
.DateTime2:
34
case
DbType
.DateTimeOffset:
36
case
DbType
.Decimal:
38
case
DbType
.Double:
40
case
DbType
.Guid:
42
case
DbType
.Int16:
44
case
DbType
.Int32:
46
case
DbType
.Int64:
48
case
DbType
.Object:
50
case
DbType
.SByte:
52
case
DbType
.Single:
54
case
DbType
.Time:
56
case
DbType
.UInt16:
58
case
DbType
.UInt32:
60
case
DbType
.UInt64:
62
case
DbType
.Currency:
63
case
DbType
.VarNumeric:
64
case
DbType
.Xml:
70
/// <summary>Maps a <see cref="InternalDataKind"/> to the associated <see cref="
DbType
"/>.</summary>
71
public static
DbType
ToDbType(this InternalDataKind dataKind)
77
return
DbType
.SByte;
82
return
DbType
.Byte;
87
return
DbType
.Int16;
92
return
DbType
.UInt16;
97
return
DbType
.Int32;
102
return
DbType
.UInt32;
107
return
DbType
.Int64;
112
return
DbType
.UInt64;
117
return
DbType
.Single;
122
return
DbType
.Double;
127
return
DbType
.String;
132
return
DbType
.Boolean;
137
return
DbType
.DateTime;
Microsoft.ML.Tests (6)
DatabaseLoaderTests.cs (6)
56
new DatabaseLoader.Column() { Name = "Label", Type =
DbType
.Int32 },
57
new DatabaseLoader.Column() { Name = "SepalLength", Type =
DbType
.Single },
58
new DatabaseLoader.Column() { Name = "SepalWidth", Type =
DbType
.Single },
59
new DatabaseLoader.Column() { Name = "PetalLength", Type =
DbType
.Single },
60
new DatabaseLoader.Column() { Name = "PetalWidth", Type =
DbType
.Single }
258
var loader = mlContext.Data.CreateDatabaseLoader(new DatabaseLoader.Column("datetime",
DbType
.DateTime, 0));
netstandard (1)
netstandard.cs (1)
523
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
DbType
))]
System.Data (1)
src\runtime\src\libraries\shims\System.Data\ref\System.Data.cs (1)
92
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
DbType
))]
System.Data.Common (4)
System\Data\Common\DBCommandBuilder.cs (1)
1153
p.DbType =
DbType
.Int32;
System\Data\Common\DbDataAdapter.cs (1)
775
Debug.Assert(
DbType
.Int32 == parameter.DbType, "unexpected DbType");
System\Data\Common\DbParameter.cs (1)
16
public abstract
DbType
DbType { get; set; }
System\Data\IDataParameter.cs (1)
10
DbType
DbType { get; set; }
System.Data.Odbc (60)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
372
internal static ArgumentException DbTypeNotSupported(System.Data.
DbType
type, Type enumtype)
System\Data\Odbc\Odbc32.cs (58)
766
private static readonly TypeMap s_bigInt = new TypeMap(OdbcType.BigInt,
DbType
.Int64, typeof(long), ODBC32.SQL_TYPE.BIGINT, ODBC32.SQL_C.SBIGINT, ODBC32.SQL_C.SBIGINT, 8, 20, true);
767
private static readonly TypeMap s_binary = new TypeMap(OdbcType.Binary,
DbType
.Binary, typeof(byte[]), ODBC32.SQL_TYPE.BINARY, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
768
private static readonly TypeMap s_bit = new TypeMap(OdbcType.Bit,
DbType
.Boolean, typeof(bool), ODBC32.SQL_TYPE.BIT, ODBC32.SQL_C.BIT, ODBC32.SQL_C.BIT, 1, 1, false);
769
internal static readonly TypeMap _Char = new TypeMap(OdbcType.Char,
DbType
.AnsiStringFixedLength, typeof(string), ODBC32.SQL_TYPE.CHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
770
private static readonly TypeMap s_dateTime = new TypeMap(OdbcType.DateTime,
DbType
.DateTime, typeof(DateTime), ODBC32.SQL_TYPE.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, 16, 23, false);
771
private static readonly TypeMap s_date = new TypeMap(OdbcType.Date,
DbType
.Date, typeof(DateTime), ODBC32.SQL_TYPE.TYPE_DATE, ODBC32.SQL_C.TYPE_DATE, ODBC32.SQL_C.TYPE_DATE, 6, 10, false);
772
private static readonly TypeMap s_time = new TypeMap(OdbcType.Time,
DbType
.Time, typeof(TimeSpan), ODBC32.SQL_TYPE.TYPE_TIME, ODBC32.SQL_C.TYPE_TIME, ODBC32.SQL_C.TYPE_TIME, 6, 12, false);
773
private static readonly TypeMap s_decimal = new TypeMap(OdbcType.Decimal,
DbType
.Decimal, typeof(decimal), ODBC32.SQL_TYPE.DECIMAL, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false);
775
private static readonly TypeMap s_double = new TypeMap(OdbcType.Double,
DbType
.Double, typeof(double), ODBC32.SQL_TYPE.DOUBLE, ODBC32.SQL_C.DOUBLE, ODBC32.SQL_C.DOUBLE, 8, 15, false);
776
internal static readonly TypeMap _Image = new TypeMap(OdbcType.Image,
DbType
.Binary, typeof(byte[]), ODBC32.SQL_TYPE.LONGVARBINARY, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
777
private static readonly TypeMap s_int = new TypeMap(OdbcType.Int,
DbType
.Int32, typeof(int), ODBC32.SQL_TYPE.INTEGER, ODBC32.SQL_C.SLONG, ODBC32.SQL_C.SLONG, 4, 10, true);
778
private static readonly TypeMap s_NChar = new TypeMap(OdbcType.NChar,
DbType
.StringFixedLength, typeof(string), ODBC32.SQL_TYPE.WCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.WCHAR, -1, -1, false);
779
internal static readonly TypeMap _NText = new TypeMap(OdbcType.NText,
DbType
.String, typeof(string), ODBC32.SQL_TYPE.WLONGVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.WCHAR, -1, -1, false);
780
private static readonly TypeMap s_numeric = new TypeMap(OdbcType.Numeric,
DbType
.Decimal, typeof(decimal), ODBC32.SQL_TYPE.NUMERIC, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false);
781
internal static readonly TypeMap _NVarChar = new TypeMap(OdbcType.NVarChar,
DbType
.String, typeof(string), ODBC32.SQL_TYPE.WVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.WCHAR, -1, -1, false);
782
private static readonly TypeMap s_real = new TypeMap(OdbcType.Real,
DbType
.Single, typeof(float), ODBC32.SQL_TYPE.REAL, ODBC32.SQL_C.REAL, ODBC32.SQL_C.REAL, 4, 7, false);
783
private static readonly TypeMap s_uniqueId = new TypeMap(OdbcType.UniqueIdentifier,
DbType
.Guid, typeof(Guid), ODBC32.SQL_TYPE.GUID, ODBC32.SQL_C.GUID, ODBC32.SQL_C.GUID, 16, 36, false);
784
private static readonly TypeMap s_smallDT = new TypeMap(OdbcType.SmallDateTime,
DbType
.DateTime, typeof(DateTime), ODBC32.SQL_TYPE.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, 16, 23, false);
785
private static readonly TypeMap s_smallInt = new TypeMap(OdbcType.SmallInt,
DbType
.Int16, typeof(short), ODBC32.SQL_TYPE.SMALLINT, ODBC32.SQL_C.SSHORT, ODBC32.SQL_C.SSHORT, 2, 5, true);
786
internal static readonly TypeMap _Text = new TypeMap(OdbcType.Text,
DbType
.AnsiString, typeof(string), ODBC32.SQL_TYPE.LONGVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
787
private static readonly TypeMap s_timestamp = new TypeMap(OdbcType.Timestamp,
DbType
.Binary, typeof(byte[]), ODBC32.SQL_TYPE.BINARY, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
788
private static readonly TypeMap s_tinyInt = new TypeMap(OdbcType.TinyInt,
DbType
.Byte, typeof(byte), ODBC32.SQL_TYPE.TINYINT, ODBC32.SQL_C.UTINYINT, ODBC32.SQL_C.UTINYINT, 1, 3, true);
789
private static readonly TypeMap s_varBinary = new TypeMap(OdbcType.VarBinary,
DbType
.Binary, typeof(byte[]), ODBC32.SQL_TYPE.VARBINARY, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
790
internal static readonly TypeMap _VarChar = new TypeMap(OdbcType.VarChar,
DbType
.AnsiString, typeof(string), ODBC32.SQL_TYPE.VARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
791
private static readonly TypeMap s_variant = new TypeMap(OdbcType.Binary,
DbType
.Binary, typeof(object), ODBC32.SQL_TYPE.SS_VARIANT, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
792
private static readonly TypeMap s_UDT = new TypeMap(OdbcType.Binary,
DbType
.Binary, typeof(object), ODBC32.SQL_TYPE.SS_UDT, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
793
private static readonly TypeMap s_XML = new TypeMap(OdbcType.Text,
DbType
.AnsiString, typeof(string), ODBC32.SQL_TYPE.LONGVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
796
internal readonly
DbType
_dbType;
808
private TypeMap(OdbcType odbcType,
DbType
dbType, Type type, ODBC32.SQL_TYPE sql_type, ODBC32.SQL_C sql_c, ODBC32.SQL_C param_sql_c, int bsize, int csize, bool signType)
853
internal static TypeMap FromDbType(
DbType
dbType)
857
case
DbType
.AnsiString: return _VarChar;
858
case
DbType
.AnsiStringFixedLength: return _Char;
859
case
DbType
.Binary: return s_varBinary;
860
case
DbType
.Byte: return s_tinyInt;
861
case
DbType
.Boolean: return s_bit;
862
case
DbType
.Currency: return s_decimal;
864
case
DbType
.Date: return s_date;
865
case
DbType
.Time: return s_time;
866
case
DbType
.DateTime: return s_dateTime;
867
case
DbType
.Decimal: return s_decimal;
868
case
DbType
.Double: return s_double;
869
case
DbType
.Guid: return s_uniqueId;
870
case
DbType
.Int16: return s_smallInt;
871
case
DbType
.Int32: return s_int;
872
case
DbType
.Int64: return s_bigInt;
873
case
DbType
.Single: return s_real;
874
case
DbType
.String: return _NVarChar;
875
case
DbType
.StringFixedLength: return s_NChar;
876
case
DbType
.Object:
877
case
DbType
.SByte:
878
case
DbType
.UInt16:
879
case
DbType
.UInt32:
880
case
DbType
.UInt64:
881
case
DbType
.VarNumeric:
986
DbType
.Int64 => s_decimal, // upgrade to decimal
987
DbType
.Int32 => s_bigInt, // upgrade to 64 bit
988
DbType
.Int16 => s_int, // upgrade to 32 bit
996
DbType
.Byte => s_smallInt, // upgrade to 16 bit
System\Data\Odbc\OdbcParameter.cs (1)
149
public override System.Data.
DbType
DbType
System.Data.OleDb (70)
OleDb_Enum.cs (68)
130
private static readonly NativeDBType D_Binary = new NativeDBType(0xff, -1, true, false, OleDbType.Binary, NativeDBType.BYTES, S_BINARY, typeof(byte[]), NativeDBType.BYTES,
DbType
.Binary); // 0
131
private static readonly NativeDBType D_Boolean = new NativeDBType(0xff, 2, true, false, OleDbType.Boolean, NativeDBType.BOOL, S_BOOL, typeof(bool), NativeDBType.BOOL,
DbType
.Boolean); // 1 - integer2 (variant_bool)
132
private static readonly NativeDBType D_BSTR = new NativeDBType(0xff, IntPtr.Size, false, false, OleDbType.BSTR, NativeDBType.BSTR, S_BSTR, typeof(string), NativeDBType.BSTR,
DbType
.String); // 2 - integer4 (pointer)
133
private static readonly NativeDBType D_Char = new NativeDBType(0xff, -1, true, false, OleDbType.Char, NativeDBType.STR, S_CHAR, typeof(string), NativeDBType.WSTR/*STR*/,
DbType
.AnsiStringFixedLength); // 3 - (ansi pointer)
134
private static readonly NativeDBType D_Currency = new NativeDBType(19, 8, true, false, OleDbType.Currency, NativeDBType.CY, S_CY, typeof(decimal), NativeDBType.CY,
DbType
.Currency); // 4 - integer8
135
private static 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
136
private static 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)
137
private static 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)
138
private static 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)
139
private static readonly NativeDBType D_Decimal = new NativeDBType(28, 16, true, false, OleDbType.Decimal, NativeDBType.DECIMAL, S_DECIMAL, typeof(decimal), NativeDBType.DECIMAL,
DbType
.Decimal); // 9 - (tagDec)
140
private static readonly NativeDBType D_Error = new NativeDBType(0xff, 4, true, false, OleDbType.Error, NativeDBType.ERROR, S_ERROR, typeof(int), NativeDBType.ERROR,
DbType
.Int32); // 10 - integer4
141
private static 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
142
private static 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]
143
private static readonly NativeDBType D_TinyInt = new NativeDBType(3, 1, true, false, OleDbType.TinyInt, NativeDBType.I1, S_I1, typeof(short), NativeDBType.I1,
DbType
.SByte); // 13 - integer1
144
private static readonly NativeDBType D_SmallInt = new NativeDBType(5, 2, true, false, OleDbType.SmallInt, NativeDBType.I2, S_I2, typeof(short), NativeDBType.I2,
DbType
.Int16); // 14 - integer2
145
private static readonly NativeDBType D_Integer = new NativeDBType(10, 4, true, false, OleDbType.Integer, NativeDBType.I4, S_I4, typeof(int), NativeDBType.I4,
DbType
.Int32); // 15 - integer4
146
private static readonly NativeDBType D_BigInt = new NativeDBType(19, 8, true, false, OleDbType.BigInt, NativeDBType.I8, S_I8, typeof(long), NativeDBType.I8,
DbType
.Int64); // 16 - integer8
147
private static readonly NativeDBType D_IDispatch = new NativeDBType(0xff, IntPtr.Size, true, false, OleDbType.IDispatch, NativeDBType.IDISPATCH, S_IDISPATCH, typeof(object), NativeDBType.IDISPATCH,
DbType
.Object); // 17 - integer4 (pointer)
148
private static readonly NativeDBType D_IUnknown = new NativeDBType(0xff, IntPtr.Size, true, false, OleDbType.IUnknown, NativeDBType.IUNKNOWN, S_IUNKNOWN, typeof(object), NativeDBType.IUNKNOWN,
DbType
.Object); // 18 - integer4 (pointer)
149
private static readonly NativeDBType D_LongVarBinary = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarBinary, NativeDBType.BYTES, S_LONGVARBINARY, typeof(byte[]), NativeDBType.BYTES,
DbType
.Binary); // 19
150
private static readonly NativeDBType D_LongVarChar = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarChar, NativeDBType.STR, S_LONGVARCHAR, typeof(string), NativeDBType.WSTR/*STR*/,
DbType
.AnsiString); // 20 - (ansi pointer)
151
private static readonly NativeDBType D_Numeric = new NativeDBType(28, 19, true, false, OleDbType.Numeric, NativeDBType.NUMERIC, S_NUMERIC, typeof(decimal), NativeDBType.NUMERIC,
DbType
.Decimal); // 21 - (tagDB_Numeric)
152
private static readonly unsafe NativeDBType D_PropVariant = new NativeDBType(0xff, sizeof(ComVariant), true, false, OleDbType.PropVariant, NativeDBType.PROPVARIANT, S_PROPVARIANT, typeof(object), NativeDBType.VARIANT,
DbType
.Object); // 22
153
private static readonly NativeDBType D_Single = new NativeDBType(7, 4, true, false, OleDbType.Single, NativeDBType.R4, S_R4, typeof(float), NativeDBType.R4,
DbType
.Single); // 23 - single
154
private static readonly NativeDBType D_Double = new NativeDBType(15, 8, true, false, OleDbType.Double, NativeDBType.R8, S_R8, typeof(double), NativeDBType.R8,
DbType
.Double); // 24 - double
155
private static readonly NativeDBType D_UnsignedTinyInt = new NativeDBType(3, 1, true, false, OleDbType.UnsignedTinyInt, NativeDBType.UI1, S_UI1, typeof(byte), NativeDBType.UI1,
DbType
.Byte); // 25 - byte7
156
private static readonly NativeDBType D_UnsignedSmallInt = new NativeDBType(5, 2, true, false, OleDbType.UnsignedSmallInt, NativeDBType.UI2, S_UI2, typeof(int), NativeDBType.UI2,
DbType
.UInt16); // 26 - unsigned integer2
157
private static readonly NativeDBType D_UnsignedInt = new NativeDBType(10, 4, true, false, OleDbType.UnsignedInt, NativeDBType.UI4, S_UI4, typeof(long), NativeDBType.UI4,
DbType
.UInt32); // 27 - unsigned integer4
158
private static readonly NativeDBType D_UnsignedBigInt = new NativeDBType(20, 8, true, false, OleDbType.UnsignedBigInt, NativeDBType.UI8, S_UI8, typeof(decimal), NativeDBType.UI8,
DbType
.UInt64); // 28 - unsigned integer8
159
private static readonly NativeDBType D_VarBinary = new NativeDBType(0xff, -1, false, false, OleDbType.VarBinary, NativeDBType.BYTES, S_VARBINARY, typeof(byte[]), NativeDBType.BYTES,
DbType
.Binary); // 29
160
private static readonly NativeDBType D_VarChar = new NativeDBType(0xff, -1, false, false, OleDbType.VarChar, NativeDBType.STR, S_VARCHAR, typeof(string), NativeDBType.WSTR/*STR*/,
DbType
.AnsiString); // 30 - (ansi pointer)
161
private static readonly NativeDBType D_Variant = new NativeDBType(0xff, ODB.SizeOf_Variant, true, false, OleDbType.Variant, NativeDBType.VARIANT, S_VARIANT, typeof(object), NativeDBType.VARIANT,
DbType
.Object); // 31 - ubyte[16] (variant)
162
private static readonly NativeDBType D_VarNumeric = new NativeDBType(255, 16, true, false, OleDbType.VarNumeric, NativeDBType.VARNUMERIC, S_VARNUMERIC, typeof(decimal), NativeDBType.DECIMAL,
DbType
.VarNumeric); // 32 - (unicode pointer)
163
private static readonly NativeDBType D_WChar = new NativeDBType(0xff, -1, true, false, OleDbType.WChar, NativeDBType.WSTR, S_WCHAR, typeof(string), NativeDBType.WSTR,
DbType
.StringFixedLength); // 33 - (unicode pointer)
164
private static readonly NativeDBType D_VarWChar = new NativeDBType(0xff, -1, false, false, OleDbType.VarWChar, NativeDBType.WSTR, S_WVARCHAR, typeof(string), NativeDBType.WSTR,
DbType
.String); // 34 - (unicode pointer)
165
private static readonly NativeDBType D_LongVarWChar = new NativeDBType(0xff, -1, false, true, OleDbType.LongVarWChar, NativeDBType.WSTR, S_WLONGVARCHAR, typeof(string), NativeDBType.WSTR,
DbType
.String); // 35 - (unicode pointer)
166
private static readonly NativeDBType D_Chapter = new NativeDBType(0xff, IntPtr.Size, false, false, OleDbType.Empty, NativeDBType.HCHAPTER, S_UDT, typeof(IDataReader), NativeDBType.HCHAPTER,
DbType
.Object); // 36 - (hierarchical chaper)
167
private static readonly NativeDBType D_Empty = new NativeDBType(0xff, 0, false, false, OleDbType.Empty, NativeDBType.EMPTY, "", null, NativeDBType.EMPTY,
DbType
.Object); // 37 - invalid param default
168
private static readonly NativeDBType D_Xml = new NativeDBType(0xff, -1, false, false, OleDbType.VarWChar, NativeDBType.XML, S_XML, typeof(string), NativeDBType.WSTR,
DbType
.String); // 38 - (unicode pointer)
169
private static readonly NativeDBType D_Udt = new NativeDBType(0xff, -1, false, false, OleDbType.VarBinary, NativeDBType.UDT, S_BINARY, typeof(byte[]), NativeDBType.BYTES,
DbType
.Binary); // 39 - (unicode pointer)
178
internal readonly
DbType
enumDbType; // enum System.Data.DbType
192
private NativeDBType(byte maxpre, int fixlen, bool isfixed, bool islong, OleDbType enumOleDbType, short dbType, string dbstring, Type? dataType, short wType,
DbType
enumDbType)
313
internal static NativeDBType FromDbType(
DbType
dbType) =>
316
DbType
.AnsiString => D_VarChar,
317
DbType
.AnsiStringFixedLength => D_Char,
318
DbType
.Binary => D_VarBinary,
319
DbType
.Byte => D_UnsignedTinyInt,
320
DbType
.Boolean => D_Boolean,
321
DbType
.Currency => D_Currency,
322
DbType
.Date => D_DBDate,
323
DbType
.DateTime => D_DBTimeStamp,
324
DbType
.Decimal => D_Decimal,
325
DbType
.Double => D_Double,
326
DbType
.Guid => D_Guid,
327
DbType
.Int16 => D_SmallInt,
328
DbType
.Int32 => D_Integer,
329
DbType
.Int64 => D_BigInt,
330
DbType
.Object => D_Variant,
331
DbType
.SByte => D_TinyInt,
332
DbType
.Single => D_Single,
333
DbType
.String => D_VarWChar,
334
DbType
.StringFixedLength => D_WChar,
335
DbType
.Time => D_DBTime,
336
DbType
.UInt16 => D_UnsignedSmallInt,
337
DbType
.UInt32 => D_UnsignedInt,
338
DbType
.UInt64 => D_UnsignedBigInt,
339
DbType
.VarNumeric => D_VarNumeric,
340
DbType
.Xml => D_Xml,
OleDbParameter.cs (1)
107
public override
DbType
DbType
System\Data\Common\AdapterUtil.cs (1)
696
internal static ArgumentException DbTypeNotSupported(System.Data.
DbType
type, Type enumtype)