483 references to DbType
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\StoreUtilities.cs (1)
153
else if (sqlParameter.DbType == System.Data.
DbType
.Binary)
System.Data (242)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
1569
static internal ArgumentException DbTypeNotSupported(System.Data.
DbType
type, Type enumtype) {
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
1038
p.DbType =
DbType
.Int32;
fx\src\data\System\Data\Common\DbDataAdapter.cs (1)
649
Debug.Assert(
DbType
.Int32 == parameter.DbType, "unexpected DbType");
fx\src\data\System\Data\Common\DBParameter.cs (1)
27
abstract public
DbType
DbType {
fx\src\data\System\Data\IDataParameter.cs (1)
14
DbType
DbType {
fx\src\data\System\Data\Odbc\Odbc32.cs (58)
776
static private readonly TypeMap _BigInt = new TypeMap(OdbcType.BigInt,
DbType
.Int64, typeof(Int64), ODBC32.SQL_TYPE.BIGINT, ODBC32.SQL_C.SBIGINT, ODBC32.SQL_C.SBIGINT, 8, 20, true);
777
static private readonly TypeMap _Binary = new TypeMap(OdbcType.Binary,
DbType
.Binary, typeof(byte[]), ODBC32.SQL_TYPE.BINARY, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
778
static private readonly TypeMap _Bit = new TypeMap(OdbcType.Bit,
DbType
.Boolean, typeof(Boolean), ODBC32.SQL_TYPE.BIT, ODBC32.SQL_C.BIT, ODBC32.SQL_C.BIT, 1, 1, false);
779
static internal 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);
780
static private readonly TypeMap _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);
781
static private readonly TypeMap _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);
782
static private readonly TypeMap _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);
783
static private readonly TypeMap _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);
785
static private readonly TypeMap _Double = new TypeMap(OdbcType.Double,
DbType
.Double, typeof(Double), ODBC32.SQL_TYPE.DOUBLE, ODBC32.SQL_C.DOUBLE, ODBC32.SQL_C.DOUBLE, 8, 15, false);
786
static internal 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);
787
static private readonly TypeMap _Int = new TypeMap(OdbcType.Int,
DbType
.Int32, typeof(Int32), ODBC32.SQL_TYPE.INTEGER, ODBC32.SQL_C.SLONG, ODBC32.SQL_C.SLONG, 4, 10, true);
788
static private readonly TypeMap _NChar = new TypeMap(OdbcType.NChar,
DbType
.StringFixedLength, typeof(String), ODBC32.SQL_TYPE.WCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.WCHAR, -1, -1, false);
789
static internal 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);
790
static private readonly TypeMap _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);
791
static internal 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);
792
static private readonly TypeMap _Real = new TypeMap(OdbcType.Real,
DbType
.Single, typeof(Single), ODBC32.SQL_TYPE.REAL, ODBC32.SQL_C.REAL, ODBC32.SQL_C.REAL, 4, 7, false);
793
static private readonly TypeMap _UniqueId = new TypeMap(OdbcType.UniqueIdentifier,
DbType
.Guid, typeof(Guid), ODBC32.SQL_TYPE.GUID, ODBC32.SQL_C.GUID, ODBC32.SQL_C.GUID, 16, 36, false);
794
static private readonly TypeMap _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);
795
static private readonly TypeMap _SmallInt = new TypeMap(OdbcType.SmallInt,
DbType
.Int16, typeof(Int16), ODBC32.SQL_TYPE.SMALLINT, ODBC32.SQL_C.SSHORT, ODBC32.SQL_C.SSHORT, 2, 5, true);
796
static internal 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);
797
static private readonly TypeMap _Timestamp = new TypeMap(OdbcType.Timestamp,
DbType
.Binary, typeof(Byte[]), ODBC32.SQL_TYPE.BINARY, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
798
static private readonly TypeMap _TinyInt = new TypeMap(OdbcType.TinyInt,
DbType
.Byte, typeof(Byte), ODBC32.SQL_TYPE.TINYINT, ODBC32.SQL_C.UTINYINT, ODBC32.SQL_C.UTINYINT, 1, 3, true);
799
static private readonly TypeMap _VarBinary = new TypeMap(OdbcType.VarBinary,
DbType
.Binary, typeof(Byte[]), ODBC32.SQL_TYPE.VARBINARY, ODBC32.SQL_C.BINARY, ODBC32.SQL_C.BINARY, -1, -1, false);
800
static internal 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);
801
static private readonly TypeMap _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);
802
static private readonly TypeMap _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);
803
static private readonly TypeMap _XML = new TypeMap(OdbcType.Text,
DbType
.AnsiString, typeof(String), ODBC32.SQL_TYPE.LONGVARCHAR, ODBC32.SQL_C.WCHAR, ODBC32.SQL_C.CHAR, -1, -1, false);
806
internal readonly
DbType
_dbType;
818
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) {
862
static internal TypeMap FromDbType(
DbType
dbType) {
864
case
DbType
.AnsiString: return _VarChar;
865
case
DbType
.AnsiStringFixedLength: return _Char;
866
case
DbType
.Binary: return _VarBinary;
867
case
DbType
.Byte: return _TinyInt;
868
case
DbType
.Boolean: return _Bit;
869
case
DbType
.Currency: return _Decimal;
871
case
DbType
.Date: return _Date;
872
case
DbType
.Time: return _Time;
873
case
DbType
.DateTime: return _DateTime;
874
case
DbType
.Decimal: return _Decimal;
875
case
DbType
.Double: return _Double;
876
case
DbType
.Guid: return _UniqueId;
877
case
DbType
.Int16: return _SmallInt;
878
case
DbType
.Int32: return _Int;
879
case
DbType
.Int64: return _BigInt;
880
case
DbType
.Single: return _Real;
881
case
DbType
.String: return _NVarChar;
882
case
DbType
.StringFixedLength: return _NChar;
883
case
DbType
.Object:
884
case
DbType
.SByte:
885
case
DbType
.UInt16:
886
case
DbType
.UInt32:
887
case
DbType
.UInt64:
888
case
DbType
.VarNumeric:
982
case
DbType
.Int64:
984
case
DbType
.Int32:
986
case
DbType
.Int16:
994
case
DbType
.Byte:
fx\src\data\System\Data\Odbc\OdbcParameter.cs (1)
154
override public System.Data.
DbType
DbType {
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (68)
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)
207
internal readonly
DbType
enumDbType; // enum System.Data.DbType
221
private NativeDBType(Byte maxpre, int fixlen, bool isfixed, bool islong, OleDbType enumOleDbType, short dbType, string dbstring, Type dataType, short wType,
DbType
enumDbType) {
332
static internal NativeDBType FromDbType(
DbType
dbType) {
334
case
DbType
.AnsiString: return D_VarChar;
335
case
DbType
.AnsiStringFixedLength: return D_Char;
336
case
DbType
.Binary: return D_VarBinary;
337
case
DbType
.Byte: return D_UnsignedTinyInt;
338
case
DbType
.Boolean: return D_Boolean;
339
case
DbType
.Currency: return D_Currency;
340
case
DbType
.Date: return D_DBDate;
341
case
DbType
.DateTime: return D_DBTimeStamp;
342
case
DbType
.Decimal: return D_Decimal;
343
case
DbType
.Double: return D_Double;
344
case
DbType
.Guid: return D_Guid;
345
case
DbType
.Int16: return D_SmallInt;
346
case
DbType
.Int32: return D_Integer;
347
case
DbType
.Int64: return D_BigInt;
348
case
DbType
.Object: return D_Variant;
349
case
DbType
.SByte: return D_TinyInt;
350
case
DbType
.Single: return D_Single;
351
case
DbType
.String: return D_VarWChar;
352
case
DbType
.StringFixedLength: return D_WChar;
353
case
DbType
.Time: return D_DBTime;
354
case
DbType
.UInt16: return D_UnsignedSmallInt;
355
case
DbType
.UInt32: return D_UnsignedInt;
356
case
DbType
.UInt64: return D_UnsignedBigInt;
357
case
DbType
.VarNumeric: return D_VarNumeric;
358
case
DbType
.Xml: return D_Xml;
fx\src\data\System\Data\OleDb\OleDbParameter.cs (1)
106
override public
DbType
DbType {
fx\src\data\System\Data\Sql\SqlMetaData.cs (37)
274
public
DbType
DbType {
1509
private static
DbType
[] sxm_rgSqlDbTypeToDbType = {
1510
DbType
.Int64, // SqlDbType.BigInt
1511
DbType
.Binary, // SqlDbType.Binary
1512
DbType
.Boolean, // SqlDbType.Bit
1513
DbType
.AnsiString, // SqlDbType.Char
1514
DbType
.DateTime, // SqlDbType.DateTime
1515
DbType
.Decimal, // SqlDbType.Decimal
1516
DbType
.Double, // SqlDbType.Float
1517
DbType
.Binary, // SqlDbType.Image
1518
DbType
.Int32, // SqlDbType.Int
1519
DbType
.Currency, // SqlDbType.Money
1520
DbType
.String, // SqlDbType.NChar
1521
DbType
.String, // SqlDbType.NText
1522
DbType
.String, // SqlDbType.NVarChar
1523
DbType
.Single, // SqlDbType.Real
1524
DbType
.Guid, // SqlDbType.UniqueIdentifier
1525
DbType
.DateTime, // SqlDbType.SmallDateTime
1526
DbType
.Int16, // SqlDbType.SmallInt
1527
DbType
.Currency, // SqlDbType.SmallMoney
1528
DbType
.AnsiString, // SqlDbType.Text
1529
DbType
.Binary, // SqlDbType.Timestamp
1530
DbType
.Byte, // SqlDbType.TinyInt
1531
DbType
.Binary, // SqlDbType.VarBinary
1532
DbType
.AnsiString, // SqlDbType.VarChar
1533
DbType
.Object, // SqlDbType.Variant
1534
DbType
.Object, // SqlDbType.Row
1535
DbType
.Xml, // SqlDbType.Xml
1536
DbType
.String, // SqlDbType.NVarChar, place holder
1537
DbType
.String, // SqlDbType.NVarChar, place holder
1538
DbType
.String, // SqlDbType.NVarChar, place holder
1539
DbType
.Object, // SqlDbType.Udt
1540
DbType
.Object, // SqlDbType.Structured
1541
DbType
.Date, // SqlDbType.Date
1542
DbType
.Time, // SqlDbType.Time
1543
DbType
.DateTime2, // SqlDbType.DateTime2
1544
DbType
.DateTimeOffset // SqlDbType.DateTimeOffset
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
437
param.DbType =
DbType
.Guid;
fx\src\data\System\Data\SqlClient\SqlEnums.cs (67)
41
internal readonly
DbType
DbType;
61
public MetaType(byte precision, byte scale, int fixedLength, bool isFixed, bool isLong, bool isPlp, byte tdsType, byte nullableTdsType, string typeName, Type classType, Type sqlType, SqlDbType sqldbType,
DbType
dbType, byte propBytes) {
220
internal static MetaType GetMetaTypeFromDbType(
DbType
target) {
223
case
DbType
.AnsiString: return MetaVarChar;
224
case
DbType
.AnsiStringFixedLength: return MetaChar;
225
case
DbType
.Binary: return MetaVarBinary;
226
case
DbType
.Byte: return MetaTinyInt;
227
case
DbType
.Boolean: return MetaBit;
228
case
DbType
.Currency: return MetaMoney;
229
case
DbType
.Date:
230
case
DbType
.DateTime: return MetaDateTime;
231
case
DbType
.Decimal: return MetaDecimal;
232
case
DbType
.Double: return MetaFloat;
233
case
DbType
.Guid: return MetaUniqueId;
234
case
DbType
.Int16: return MetaSmallInt;
235
case
DbType
.Int32: return MetaInt;
236
case
DbType
.Int64: return MetaBigInt;
237
case
DbType
.Object: return MetaVariant;
238
case
DbType
.Single: return MetaReal;
239
case
DbType
.String: return MetaNVarChar;
240
case
DbType
.StringFixedLength: return MetaNChar;
241
case
DbType
.Time: return MetaDateTime;
242
case
DbType
.Xml: return MetaXml;
243
case
DbType
.DateTime2: return MetaDateTime2;
244
case
DbType
.DateTimeOffset: return MetaDateTimeOffset;
245
case
DbType
.SByte: // unsupported
246
case
DbType
.UInt16:
247
case
DbType
.UInt32:
248
case
DbType
.UInt64:
249
case
DbType
.VarNumeric:
707
(19, 255, 8, true, false, false, TdsEnums.SQLINT8, TdsEnums.SQLINTN, MetaTypeName.BIGINT, typeof(System.Int64), typeof(SqlInt64), SqlDbType.BigInt,
DbType
.Int64, 0);
710
(15, 255, 8, true, false, false, TdsEnums.SQLFLT8, TdsEnums.SQLFLTN, MetaTypeName.FLOAT, typeof(System.Double), typeof(SqlDouble), SqlDbType.Float,
DbType
.Double, 0);
713
(7, 255, 4, true, false, false, TdsEnums.SQLFLT4, TdsEnums.SQLFLTN, MetaTypeName.REAL, typeof(System.Single), typeof(SqlSingle), SqlDbType.Real,
DbType
.Single, 0);
718
(255, 255, -1, false, false, false, TdsEnums.SQLBIGBINARY, TdsEnums.SQLBIGBINARY, MetaTypeName.BINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.Binary,
DbType
.Binary, 2);
722
(255, 255, -1, false, false, false, TdsEnums.SQLBIGBINARY, TdsEnums.SQLBIGBINARY, MetaTypeName.TIMESTAMP, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.Timestamp,
DbType
.Binary, 2);
725
(255, 255, -1, false, false, false, TdsEnums.SQLBIGVARBINARY, TdsEnums.SQLBIGVARBINARY, MetaTypeName.VARBINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.VarBinary,
DbType
.Binary, 2);
728
(255, 255, -1, false, true, true, TdsEnums.SQLBIGVARBINARY, TdsEnums.SQLBIGVARBINARY, MetaTypeName.VARBINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.VarBinary,
DbType
.Binary, 2);
734
(255, 255, -1, false, false, false, TdsEnums.SQLVARBINARY, TdsEnums.SQLBIGBINARY, ADP.StrEmpty, typeof(System.Byte[]), typeof(SqlBinary), TdsEnums.SmallVarBinary,
DbType
.Binary, 2);
737
(255, 255, -1, false, true, false, TdsEnums.SQLIMAGE, TdsEnums.SQLIMAGE, MetaTypeName.IMAGE, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.Image,
DbType
.Binary, 0);
740
(255, 255, 1, true, false, false, TdsEnums.SQLBIT, TdsEnums.SQLBITN, MetaTypeName.BIT, typeof(System.Boolean), typeof(SqlBoolean), SqlDbType.Bit,
DbType
.Boolean, 0);
743
(3, 255, 1, true, false, false, TdsEnums.SQLINT1, TdsEnums.SQLINTN, MetaTypeName.TINYINT, typeof(System.Byte), typeof(SqlByte), SqlDbType.TinyInt,
DbType
.Byte, 0);
746
(5, 255, 2, true, false, false, TdsEnums.SQLINT2, TdsEnums.SQLINTN, MetaTypeName.SMALLINT, typeof(System.Int16), typeof(SqlInt16), SqlDbType.SmallInt,
DbType
.Int16, 0);
749
(10, 255, 4, true, false, false, TdsEnums.SQLINT4, TdsEnums.SQLINTN, MetaTypeName.INT, typeof(System.Int32), typeof(SqlInt32), SqlDbType.Int,
DbType
.Int32, 0);
755
(255, 255, -1, false, false, false, TdsEnums.SQLBIGCHAR, TdsEnums.SQLBIGCHAR, MetaTypeName.CHAR, typeof(System.String), typeof(SqlString), SqlDbType.Char,
DbType
.AnsiStringFixedLength, 7);
758
(255, 255, -1, false, false, false, TdsEnums.SQLBIGVARCHAR, TdsEnums.SQLBIGVARCHAR, MetaTypeName.VARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.VarChar,
DbType
.AnsiString, 7);
761
(255, 255, -1, false, true, true, TdsEnums.SQLBIGVARCHAR, TdsEnums.SQLBIGVARCHAR, MetaTypeName.VARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.VarChar,
DbType
.AnsiString, 7);
764
(255, 255, -1, false, true, false, TdsEnums.SQLTEXT, TdsEnums.SQLTEXT, MetaTypeName.TEXT, typeof(System.String), typeof(SqlString), SqlDbType.Text,
DbType
.AnsiString, 0);
770
(255, 255, -1, false, false, false, TdsEnums.SQLNCHAR, TdsEnums.SQLNCHAR, MetaTypeName.NCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NChar,
DbType
.StringFixedLength, 7);
773
(255, 255, -1, false, false, false, TdsEnums.SQLNVARCHAR, TdsEnums.SQLNVARCHAR, MetaTypeName.NVARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NVarChar,
DbType
.String, 7);
776
(255, 255, -1, false, true, true, TdsEnums.SQLNVARCHAR, TdsEnums.SQLNVARCHAR, MetaTypeName.NVARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NVarChar,
DbType
.String, 7);
779
(255, 255, -1, false, true, false, TdsEnums.SQLNTEXT, TdsEnums.SQLNTEXT, MetaTypeName.NTEXT, typeof(System.String), typeof(SqlString), SqlDbType.NText,
DbType
.String, 7);
785
(38, 4, 17, true, false, false, TdsEnums.SQLNUMERICN, TdsEnums.SQLNUMERICN, MetaTypeName.DECIMAL, typeof(System.Decimal), typeof(SqlDecimal), SqlDbType.Decimal,
DbType
.Decimal, 2);
788
(255, 255, -1, false, true, true, TdsEnums.SQLXMLTYPE, TdsEnums.SQLXMLTYPE, MetaTypeName.XML, typeof(System.String), typeof(SqlXml), SqlDbType.Xml,
DbType
.Xml, 0);
791
(23, 3, 8, true, false, false, TdsEnums.SQLDATETIME, TdsEnums.SQLDATETIMN, MetaTypeName.DATETIME, typeof(System.DateTime), typeof(SqlDateTime), SqlDbType.DateTime,
DbType
.DateTime, 0);
794
(16, 0, 4, true, false, false, TdsEnums.SQLDATETIM4, TdsEnums.SQLDATETIMN, MetaTypeName.SMALLDATETIME, typeof(System.DateTime), typeof(SqlDateTime), SqlDbType.SmallDateTime,
DbType
.DateTime, 0);
797
(19, 255, 8, true, false, false, TdsEnums.SQLMONEY, TdsEnums.SQLMONEYN, MetaTypeName.MONEY, typeof(System.Decimal), typeof(SqlMoney), SqlDbType.Money,
DbType
.Currency, 0);
800
(10, 255, 4, true, false, false, TdsEnums.SQLMONEY4, TdsEnums.SQLMONEYN, MetaTypeName.SMALLMONEY, typeof(System.Decimal), typeof(SqlMoney), SqlDbType.SmallMoney,
DbType
.Currency, 0);
803
(255, 255, 16, true, false, false, TdsEnums.SQLUNIQUEID, TdsEnums.SQLUNIQUEID, MetaTypeName.ROWGUID, typeof(System.Guid), typeof(SqlGuid), SqlDbType.UniqueIdentifier,
DbType
.Guid, 0);
806
(255, 255, -1, true, false, false, TdsEnums.SQLVARIANT, TdsEnums.SQLVARIANT, MetaTypeName.VARIANT, typeof(System.Object), typeof(System.Object), SqlDbType.Variant,
DbType
.Object, 0);
809
(255, 255, -1, false, false, true, TdsEnums.SQLUDT, TdsEnums.SQLUDT, MetaTypeName.UDT, typeof(System.Object), typeof(System.Object), SqlDbType.Udt,
DbType
.Object, 0);
812
(255, 255, -1, false, true, true, TdsEnums.SQLUDT, TdsEnums.SQLUDT, MetaTypeName.UDT, typeof(System.Object), typeof(System.Object), SqlDbType.Udt,
DbType
.Object, 0);
815
(255, 255, -1, false, false, false, TdsEnums.SQLTABLE, TdsEnums.SQLTABLE, MetaTypeName.TABLE, typeof(IEnumerable<DbDataRecord>), typeof(IEnumerable<DbDataRecord>), SqlDbType.Structured,
DbType
.Object, 0);
820
(255, 255, -1, false, false, false, TdsEnums.SQLVOID, TdsEnums.SQLVOID, "", typeof(MSS.SqlDataRecord), typeof(MSS.SqlDataRecord), SqlDbType.Structured,
DbType
.Object, 0);
823
(255, 255, 3, true, false, false, TdsEnums.SQLDATE, TdsEnums.SQLDATE, MetaTypeName.DATE, typeof(System.DateTime), typeof(System.DateTime), SqlDbType.Date,
DbType
.Date, 0);
826
(255, 7, -1, false, false, false, TdsEnums.SQLTIME, TdsEnums.SQLTIME, MetaTypeName.TIME, typeof(System.TimeSpan), typeof(System.TimeSpan), SqlDbType.Time,
DbType
.Time, 1);
829
(255, 7, -1, false, false, false, TdsEnums.SQLDATETIME2, TdsEnums.SQLDATETIME2, MetaTypeName.DATETIME2, typeof(System.DateTime), typeof(System.DateTime), SqlDbType.DateTime2,
DbType
.DateTime2, 1);
832
(255, 7, -1, false, false, false, TdsEnums.SQLDATETIMEOFFSET, TdsEnums.SQLDATETIMEOFFSET, MetaTypeName.DATETIMEOFFSET, typeof(System.DateTimeOffset), typeof(System.DateTimeOffset), SqlDbType.DateTimeOffset,
DbType
.DateTimeOffset, 1);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (4)
283
override public
DbType
DbType {
292
value ==
DbType
.Date ||
293
value ==
DbType
.Time) {
943
else if ((
DbType
.Currency == destinationType.DbType) && (typeof(string) == currentType)) {
System.Data.Entity (104)
System\Data\Common\DbCommandDefinition.cs (31)
93
DbType
dbType;
98
case
DbType
.Binary:
101
case
DbType
.DateTime:
102
case
DbType
.Time:
103
case
DbType
.DateTimeOffset:
106
case
DbType
.Decimal:
109
case
DbType
.String:
120
internal static bool TryGetDbTypeFromPrimitiveType(PrimitiveType type, out
DbType
dbType)
125
dbType =
DbType
.Binary;
128
dbType =
DbType
.Boolean;
131
dbType =
DbType
.Byte;
134
dbType =
DbType
.DateTime;
137
dbType =
DbType
.Time;
140
dbType =
DbType
.DateTimeOffset;
143
dbType =
DbType
.Decimal;
146
dbType =
DbType
.Double;
149
dbType =
DbType
.Guid;
152
dbType =
DbType
.Single;
155
dbType =
DbType
.SByte;
158
dbType =
DbType
.Int16;
161
dbType =
DbType
.Int32;
164
dbType =
DbType
.Int64;
167
dbType =
DbType
.String;
170
dbType = default(
DbType
);
175
private static void PopulateBinaryParameter(DbParameter parameter, TypeUsage type,
DbType
dbType, bool isOutParam)
184
private static void PopulateDecimalParameter (DbParameter parameter, TypeUsage type,
DbType
dbType)
204
private static void PopulateDateTimeParameter(DbParameter parameter, TypeUsage type,
DbType
dbType)
240
parameter.DbType = (unicode ?
DbType
.StringFixedLength :
DbType
.AnsiStringFixedLength);
244
parameter.DbType = (unicode ?
DbType
.String :
DbType
.AnsiString);
System\Data\Common\Internal\DbTypeMap.cs (24)
53
internal static bool TryGetModelTypeUsage(
DbType
dbType, out TypeUsage modelType)
57
case
DbType
.AnsiString:
61
case
DbType
.AnsiStringFixedLength:
65
case
DbType
.String:
69
case
DbType
.StringFixedLength:
73
case
DbType
.Xml:
77
case
DbType
.Binary:
81
case
DbType
.Boolean:
85
case
DbType
.Byte:
89
case
DbType
.DateTime:
93
case
DbType
.Date:
97
case
DbType
.DateTime2:
101
case
DbType
.Time:
105
case
DbType
.DateTimeOffset:
109
case
DbType
.Decimal:
113
case
DbType
.Currency:
117
case
DbType
.Double:
121
case
DbType
.Guid:
125
case
DbType
.Int16:
129
case
DbType
.Int32:
133
case
DbType
.Int64:
137
case
DbType
.Single:
141
case
DbType
.SByte:
145
case
DbType
.VarNumeric:
System\Data\EntityClient\EntityCommand.cs (1)
831
if (parameter.EdmType == null && parameter.DbType ==
DbType
.Object && (parameter.Value == null || parameter.Value is DBNull))
System\Data\EntityClient\EntityParameter.cs (23)
24
private
DbType
? _dbType;
42
public EntityParameter(string parameterName,
DbType
dbType)
55
public EntityParameter(string parameterName,
DbType
dbType, int size)
70
public EntityParameter(string parameterName,
DbType
dbType, int size, string sourceColumn)
93
DbType
dbType,
151
public override
DbType
DbType
169
return
DbType
.String;
182
return (
DbType
)this._dbType;
267
DbType
oldDbType =
DbType
.String;
274
DbType
newDbType =
DbType
.String;
445
if (this.DbType ==
DbType
.Object &&
476
DbType
dbType = GetDbTypeFromEdm(_edmType);
477
if (dbType ==
DbType
.String)
481
return _dbType ==
DbType
.String || _dbType ==
DbType
.AnsiString
482
|| dbType ==
DbType
.AnsiStringFixedLength || dbType ==
DbType
.StringFixedLength;
494
private static
DbType
GetDbTypeFromEdm(EdmType edmType)
497
DbType
dbType;
500
return
DbType
.Object;
509
return default(
DbType
);
System\Data\EntityClient\EntityParameterCollection.cs (2)
124
public EntityParameter Add(string parameterName,
DbType
dbType)
136
public EntityParameter Add(string parameterName,
DbType
dbType, int size)
System\Data\Metadata\TypeHelpers.cs (23)
698
internal static
DbType
ConvertClrTypeToDbType(Type clrType)
708
return
DbType
.Binary;
713
return
DbType
.String;
717
return
DbType
.Guid;
721
return
DbType
.Time;
725
return
DbType
.DateTimeOffset;
728
return
DbType
.Object;
731
return
DbType
.Object;
733
return
DbType
.Boolean;
735
return
DbType
.SByte;
737
return
DbType
.Byte;
740
return
DbType
.String;
742
return
DbType
.Int16;
744
return
DbType
.UInt16;
746
return
DbType
.Int32;
748
return
DbType
.UInt32;
750
return
DbType
.Int64;
752
return
DbType
.UInt64;
754
return
DbType
.Single;
756
return
DbType
.Double;
758
return
DbType
.Decimal;
760
return
DbType
.DateTime;
762
return
DbType
.String;
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
560
typeof(System.Data.
DbType
).Assembly.Location, // System.Data.dll
System.Web (76)
UI\WebControls\ControlParameter.cs (1)
53
public ControlParameter(string name,
DbType
dbType, string controlID, string propertyName)
UI\WebControls\CookieParameter.cs (1)
42
public CookieParameter(string name,
DbType
dbType, string cookieName)
UI\WebControls\FormParameter.cs (1)
43
public FormParameter(string name,
DbType
dbType, string formField)
UI\WebControls\Parameter.cs (64)
50
public Parameter(string name,
DbType
dbType) {
59
public Parameter(string name,
DbType
dbType, string defaultValue) {
115
DefaultValue(
DbType
.Object),
119
public
DbType
DbType {
123
return
DbType
.Object;
124
return (
DbType
)o;
127
if (value <
DbType
.AnsiString || value >
DbType
.DateTimeOffset) {
219
public
DbType
GetDatabaseType() {
220
DbType
dbType = DbType;
221
if (dbType ==
DbType
.Object) {
231
DbType
dbType = DbType;
232
if (dbType ==
DbType
.Object) {
241
internal static object GetValue(object value, string defaultValue,
DbType
dbType, bool convertEmptyStringToNull,
245
if ((dbType !=
DbType
.DateTimeOffset) && (dbType !=
DbType
.Time) && (dbType !=
DbType
.Guid)) {
261
if (dbType ==
DbType
.DateTimeOffset) {
267
else if (dbType ==
DbType
.Time) {
273
else if (dbType ==
DbType
.Guid) {
439
public static TypeCode ConvertDbTypeToTypeCode(
DbType
dbType) {
441
case
DbType
.AnsiString:
442
case
DbType
.AnsiStringFixedLength:
443
case
DbType
.String:
444
case
DbType
.StringFixedLength:
446
case
DbType
.Boolean:
448
case
DbType
.Byte:
450
case
DbType
.VarNumeric: // ???
451
case
DbType
.Currency:
452
case
DbType
.Decimal:
454
case
DbType
.Date:
455
case
DbType
.DateTime:
456
case
DbType
.DateTime2: // new Katmai type
457
case
DbType
.Time: // new Katmai type - no TypeCode for TimeSpan
459
case
DbType
.Double:
461
case
DbType
.Int16:
463
case
DbType
.Int32:
465
case
DbType
.Int64:
467
case
DbType
.SByte:
469
case
DbType
.Single:
471
case
DbType
.UInt16:
473
case
DbType
.UInt32:
475
case
DbType
.UInt64:
477
case
DbType
.Guid: // ???
478
case
DbType
.Binary:
479
case
DbType
.Object:
480
case
DbType
.DateTimeOffset: // new Katmai type - no TypeCode for DateTimeOffset
487
public static
DbType
ConvertTypeCodeToDbType(TypeCode typeCode) {
491
return
DbType
.Boolean;
493
return
DbType
.Byte;
495
return
DbType
.StringFixedLength; // ???
497
return
DbType
.DateTime;
499
return
DbType
.Decimal;
501
return
DbType
.Double;
503
return
DbType
.Int16;
505
return
DbType
.Int32;
507
return
DbType
.Int64;
509
return
DbType
.SByte;
511
return
DbType
.Single;
513
return
DbType
.String;
515
return
DbType
.UInt16;
517
return
DbType
.UInt32;
519
return
DbType
.UInt64;
524
return
DbType
.Object;
UI\WebControls\ParameterCollection.cs (1)
115
public int Add(string name,
DbType
dbType, string value) {
UI\WebControls\ProfileParameter.cs (1)
51
public ProfileParameter(string name,
DbType
dbType, string propertyName)
UI\WebControls\QueryStringParameter.cs (1)
43
public QueryStringParameter(string name,
DbType
dbType, string queryStringField)
UI\WebControls\RouteParameter.cs (1)
40
public RouteParameter(string name,
DbType
dbType, string routeKey)
UI\WebControls\SessionParameter.cs (1)
43
public SessionParameter(string name,
DbType
dbType, string sessionField)
UI\WebControls\SqlDataSourceView.cs (4)
1212
if (parameter.DbType !=
DbType
.Object || (parameter.Type != TypeCode.Empty && parameter.Type != TypeCode.DBNull)) {
1223
DbType
dbType = parameter.GetDatabaseType();
1225
case
DbType
.Time:
1228
case
DbType
.Date:
System.Web.DynamicData (1)
DynamicData\DataSourceUtil.cs (1)
63
parameter.DbType =
DbType
.Guid;
System.Web.Entity (35)
System\Data\WebControls\EntityDataSourceUtil.cs (27)
383
internal static Type ConvertDbTypeToType(
DbType
dbType)
387
case
DbType
.AnsiString:
388
case
DbType
.AnsiStringFixedLength:
389
case
DbType
.String:
390
case
DbType
.StringFixedLength:
392
case
DbType
.Boolean:
394
case
DbType
.Byte:
396
case
DbType
.VarNumeric: //
397
case
DbType
.Currency:
398
case
DbType
.Decimal:
400
case
DbType
.Date:
401
case
DbType
.DateTime:
402
case
DbType
.DateTime2: // new Katmai type
404
case
DbType
.Time: // new Katmai type
406
case
DbType
.Double:
408
case
DbType
.Int16:
410
case
DbType
.Int32:
412
case
DbType
.Int64:
414
case
DbType
.SByte:
416
case
DbType
.Single:
418
case
DbType
.UInt16:
420
case
DbType
.UInt32:
422
case
DbType
.UInt64:
424
case
DbType
.Guid:
426
case
DbType
.DateTimeOffset: // new Katmai type
428
case
DbType
.Binary:
430
case
DbType
.Object:
System\Data\WebControls\WebControlParameterProxy.cs (8)
85
internal
DbType
DbType
93
return
DbType
.Object;
100
Debug.Assert(this.TypeCode != TypeCode.Empty || this.DbType !=
DbType
.Object, "Need to have TypeCode or DbType to get a ClrType");
119
if (this.DbType ==
DbType
.DateTimeOffset)
126
else if (this.DbType ==
DbType
.Time)
133
else if (this.DbType ==
DbType
.Guid)
151
if (parameter != null && parameter.Type == TypeCode.Empty && parameter.DbType ==
DbType
.Object)
156
if (parameter != null && parameter.DbType !=
DbType
.Object && parameter.Type != TypeCode.Empty)
System.Workflow.Runtime (23)
Hosting\DbResourceAllocator.cs (4)
244
internal DbParameter NewDbParameter(string parameterName,
DbType
type)
248
if (type ==
DbType
.Int64)
256
if (type ==
DbType
.Int64)
263
internal DbParameter NewDbParameter(string parameterName,
DbType
type, ParameterDirection direction)
Hosting\SqlWorkflowPersistenceService.cs (7)
187
p1.DbType =
DbType
.Int32;
194
p2.DbType =
DbType
.Guid;
311
p2.DbType =
DbType
.Guid;
319
found.DbType =
DbType
.Boolean;
427
p1.DbType =
DbType
.Int32;
434
p2.DbType =
DbType
.Guid;
495
p1.DbType =
DbType
.Int32;
Tracking\SqlTrackingService.cs (12)
375
param.DbType =
DbType
.DateTime;
1301
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@WorkflowId",
DbType
.Int32, System.Data.ParameterDirection.Output));
1302
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@Exists",
DbType
.Boolean, System.Data.ParameterDirection.Output));
1443
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@WorkflowInstanceEventId1",
DbType
.Int64, ParameterDirection.Output));
1465
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@WorkflowInstanceEventId2",
DbType
.Int64, ParameterDirection.Output));
1544
DbParameter param = DbResourceAllocator.NewDbParameter("@WorkflowInstanceInternalId",
DbType
.Int64, System.Data.ParameterDirection.InputOutput);
1623
DbParameter param = DbResourceAllocator.NewDbParameter("@ActivityInstanceId" + paramIdString,
DbType
.Int64, System.Data.ParameterDirection.InputOutput);
1635
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@ActivityExecutionStatusEventId" + paramIdString,
DbType
.Int64, ParameterDirection.Output));
1738
DbParameter param = DbResourceAllocator.NewDbParameter("@WorkflowInstanceInternalId",
DbType
.Int64);
1745
param = DbResourceAllocator.NewDbParameter("@ActivityInstanceId",
DbType
.Int64, System.Data.ParameterDirection.InputOutput);
1786
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@UserEventId",
DbType
.Int64, ParameterDirection.Output));
1859
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@TrackingDataItemId" + index,
DbType
.Int64, System.Data.ParameterDirection.Output));