380 references to ExtendedClrTypeCode
System.Data (380)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (114)
93
ht.Add( typeof( System.Boolean ),
ExtendedClrTypeCode
.Boolean );
94
ht.Add( typeof( System.Byte ),
ExtendedClrTypeCode
.Byte );
95
ht.Add( typeof( System.Char ),
ExtendedClrTypeCode
.Char );
96
ht.Add( typeof( System.DateTime ),
ExtendedClrTypeCode
.DateTime );
97
ht.Add( typeof( System.DBNull ),
ExtendedClrTypeCode
.DBNull );
98
ht.Add( typeof( System.Decimal ),
ExtendedClrTypeCode
.Decimal );
99
ht.Add( typeof( System.Double ),
ExtendedClrTypeCode
.Double );
101
ht.Add( typeof( System.Int16 ),
ExtendedClrTypeCode
.Int16 );
102
ht.Add( typeof( System.Int32 ),
ExtendedClrTypeCode
.Int32 );
103
ht.Add( typeof( System.Int64 ),
ExtendedClrTypeCode
.Int64 );
104
ht.Add( typeof( System.SByte ),
ExtendedClrTypeCode
.SByte );
105
ht.Add( typeof( System.Single ),
ExtendedClrTypeCode
.Single );
106
ht.Add( typeof( System.String ),
ExtendedClrTypeCode
.String );
107
ht.Add( typeof( System.UInt16 ),
ExtendedClrTypeCode
.UInt16 );
108
ht.Add( typeof( System.UInt32 ),
ExtendedClrTypeCode
.UInt32 );
109
ht.Add( typeof( System.UInt64 ),
ExtendedClrTypeCode
.UInt64 );
110
ht.Add( typeof( System.Object ),
ExtendedClrTypeCode
.Object );
111
ht.Add( typeof( System.Byte[] ),
ExtendedClrTypeCode
.ByteArray );
112
ht.Add( typeof( System.Char[] ),
ExtendedClrTypeCode
.CharArray );
113
ht.Add( typeof( System.Guid ),
ExtendedClrTypeCode
.Guid );
114
ht.Add( typeof( SqlBinary ),
ExtendedClrTypeCode
.SqlBinary );
115
ht.Add( typeof( SqlBoolean ),
ExtendedClrTypeCode
.SqlBoolean );
116
ht.Add( typeof( SqlByte ),
ExtendedClrTypeCode
.SqlByte );
117
ht.Add( typeof( SqlDateTime ),
ExtendedClrTypeCode
.SqlDateTime );
118
ht.Add( typeof( SqlDouble ),
ExtendedClrTypeCode
.SqlDouble );
119
ht.Add( typeof( SqlGuid ),
ExtendedClrTypeCode
.SqlGuid );
120
ht.Add( typeof( SqlInt16 ),
ExtendedClrTypeCode
.SqlInt16 );
121
ht.Add( typeof( SqlInt32 ),
ExtendedClrTypeCode
.SqlInt32 );
122
ht.Add( typeof( SqlInt64 ),
ExtendedClrTypeCode
.SqlInt64 );
123
ht.Add( typeof( SqlMoney ),
ExtendedClrTypeCode
.SqlMoney );
124
ht.Add( typeof( SqlDecimal ),
ExtendedClrTypeCode
.SqlDecimal );
125
ht.Add( typeof( SqlSingle ),
ExtendedClrTypeCode
.SqlSingle );
126
ht.Add( typeof( SqlString ),
ExtendedClrTypeCode
.SqlString );
127
ht.Add( typeof( SqlChars ),
ExtendedClrTypeCode
.SqlChars );
128
ht.Add( typeof( SqlBytes ),
ExtendedClrTypeCode
.SqlBytes );
129
ht.Add( typeof( SqlXml ),
ExtendedClrTypeCode
.SqlXml );
130
ht.Add( typeof( DataTable ),
ExtendedClrTypeCode
.DataTable );
131
ht.Add( typeof( DbDataReader ),
ExtendedClrTypeCode
.DbDataReader );
132
ht.Add( typeof( IEnumerable<SqlDataRecord> ),
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord );
133
ht.Add( typeof( System.TimeSpan ),
ExtendedClrTypeCode
.TimeSpan );
134
ht.Add( typeof( System.DateTimeOffset ),
ExtendedClrTypeCode
.DateTimeOffset );
185
internal static
ExtendedClrTypeCode
DetermineExtendedTypeCodeForUseWithSqlDbType(
191
ExtendedClrTypeCode
extendedCode =
ExtendedClrTypeCode
.Invalid;
195
extendedCode =
ExtendedClrTypeCode
.Empty;
198
extendedCode =
ExtendedClrTypeCode
.DBNull;
205
extendedCode =
ExtendedClrTypeCode
.Int64;
207
extendedCode =
ExtendedClrTypeCode
.SqlInt64;
209
extendedCode =
ExtendedClrTypeCode
.Int64;
216
extendedCode =
ExtendedClrTypeCode
.ByteArray;
218
extendedCode =
ExtendedClrTypeCode
.SqlBinary;
220
extendedCode =
ExtendedClrTypeCode
.SqlBytes;
222
extendedCode =
ExtendedClrTypeCode
.Stream;
226
extendedCode =
ExtendedClrTypeCode
.Boolean;
228
extendedCode =
ExtendedClrTypeCode
.SqlBoolean;
230
extendedCode =
ExtendedClrTypeCode
.Boolean;
239
extendedCode =
ExtendedClrTypeCode
.String;
241
extendedCode =
ExtendedClrTypeCode
.TextReader;
243
extendedCode =
ExtendedClrTypeCode
.SqlString;
245
extendedCode =
ExtendedClrTypeCode
.CharArray;
247
extendedCode =
ExtendedClrTypeCode
.SqlChars;
249
extendedCode =
ExtendedClrTypeCode
.Char;
251
extendedCode =
ExtendedClrTypeCode
.Char;
253
extendedCode =
ExtendedClrTypeCode
.String;
264
extendedCode =
ExtendedClrTypeCode
.DateTime;
266
extendedCode =
ExtendedClrTypeCode
.SqlDateTime;
268
extendedCode =
ExtendedClrTypeCode
.DateTime;
272
extendedCode =
ExtendedClrTypeCode
.Decimal;
274
extendedCode =
ExtendedClrTypeCode
.SqlDecimal;
276
extendedCode =
ExtendedClrTypeCode
.Decimal;
280
extendedCode =
ExtendedClrTypeCode
.Single;
282
extendedCode =
ExtendedClrTypeCode
.SqlSingle;
284
extendedCode =
ExtendedClrTypeCode
.Single;
288
extendedCode =
ExtendedClrTypeCode
.Int32;
290
extendedCode =
ExtendedClrTypeCode
.SqlInt32;
292
extendedCode =
ExtendedClrTypeCode
.Int32;
297
extendedCode =
ExtendedClrTypeCode
.SqlMoney;
299
extendedCode =
ExtendedClrTypeCode
.Decimal;
301
extendedCode =
ExtendedClrTypeCode
.Decimal;
305
extendedCode =
ExtendedClrTypeCode
.SqlDouble;
307
extendedCode =
ExtendedClrTypeCode
.Double;
309
extendedCode =
ExtendedClrTypeCode
.Double;
313
extendedCode =
ExtendedClrTypeCode
.SqlGuid;
315
extendedCode =
ExtendedClrTypeCode
.Guid;
319
extendedCode =
ExtendedClrTypeCode
.Int16;
321
extendedCode =
ExtendedClrTypeCode
.SqlInt16;
323
extendedCode =
ExtendedClrTypeCode
.Int16;
327
extendedCode =
ExtendedClrTypeCode
.Byte;
329
extendedCode =
ExtendedClrTypeCode
.SqlByte;
331
extendedCode =
ExtendedClrTypeCode
.Byte;
339
if (
ExtendedClrTypeCode
.SqlXml == extendedCode ) {
340
extendedCode =
ExtendedClrTypeCode
.Invalid;
348
extendedCode =
ExtendedClrTypeCode
.Object;
351
extendedCode =
ExtendedClrTypeCode
.Invalid;
356
extendedCode =
ExtendedClrTypeCode
.TimeSpan;
360
extendedCode =
ExtendedClrTypeCode
.DateTimeOffset;
364
extendedCode =
ExtendedClrTypeCode
.SqlXml;
366
extendedCode =
ExtendedClrTypeCode
.XmlReader;
368
extendedCode =
ExtendedClrTypeCode
.String;
373
extendedCode =
ExtendedClrTypeCode
.DataTable;
378
extendedCode =
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord;
381
extendedCode =
ExtendedClrTypeCode
.DbDataReader;
396
static internal
ExtendedClrTypeCode
DetermineExtendedTypeCodeFromType(Type clrType) {
399
ExtendedClrTypeCode
resultCode;
401
resultCode =
ExtendedClrTypeCode
.Invalid;
404
resultCode = (
ExtendedClrTypeCode
) result;
423
static internal
ExtendedClrTypeCode
DetermineExtendedTypeCode( object value ) {
424
ExtendedClrTypeCode
resultCode;
426
resultCode =
ExtendedClrTypeCode
.Empty;
436
static internal SqlDbType InferSqlDbTypeFromTypeCode(
ExtendedClrTypeCode
typeCode ) {
437
Debug.Assert( typeCode >=
ExtendedClrTypeCode
.Invalid && typeCode <=
ExtendedClrTypeCode
.Last, "Someone added a typecode without adding support here!" );
445
ExtendedClrTypeCode
typeCode = DetermineExtendedTypeCodeFromType(type);
447
if (
ExtendedClrTypeCode
.Invalid == typeCode) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (5)
365
ExtendedClrTypeCode
[] typeCodes = new
ExtendedClrTypeCode
[copyLength];
372
if (
ExtendedClrTypeCode
.Invalid == typeCodes[i] ) {
394
ExtendedClrTypeCode
typeCode = MetaDataUtilsSmi.DetermineExtendedTypeCodeForUseWithSqlDbType(
396
if (
ExtendedClrTypeCode
.Invalid == typeCode ) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (254)
61
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Boolean ) ) {
74
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Byte ) ) {
127
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.ByteArray ) ) {
163
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.CharArray ) ) {
191
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.DateTime ) ) {
217
if (CanAccessGetterDirectly(metaData,
ExtendedClrTypeCode
.DateTimeOffset)) {
225
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Decimal ) ) {
237
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Double ) ) {
249
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Guid ) ) {
261
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Int16 ) ) {
273
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Int32 ) ) {
285
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Int64 ) ) {
297
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Single ) ) {
308
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlBinary ) ) {
322
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlBoolean ) ) {
336
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlByte ) ) {
351
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlBytes ) ) {
387
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlChars ) ) {
437
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlDateTime ) ) {
459
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlDecimal ) ) {
480
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlDouble ) ) {
502
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlGuid ) ) {
524
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlInt16 ) ) {
546
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlInt32 ) ) {
567
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlInt64 ) ) {
589
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlMoney ) ) {
610
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlSingle ) ) {
632
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlString ) ) {
664
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.SqlXml ) ) {
685
if ( CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.String ) ) {
698
if ( ( !bypassTypeCheck ) && ( !CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.Stream ) ) ) {
710
if ( !CanAccessGetterDirectly( metaData,
ExtendedClrTypeCode
.TextReader ) ) {
728
if ((metaData.SqlDbType != SqlDbType.Variant) && (!CanAccessGetterDirectly(metaData,
ExtendedClrTypeCode
.Stream))) {
755
if ((metaData.SqlDbType != SqlDbType.Variant) && (!CanAccessGetterDirectly(metaData,
ExtendedClrTypeCode
.TextReader))) {
789
if (CanAccessGetterDirectly(metaData,
ExtendedClrTypeCode
.TimeSpan)) {
1338
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Boolean );
1344
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Byte );
1350
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.ByteArray );
1368
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.ByteArray );
1385
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.CharArray );
1403
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.DateTime );
1412
ThrowIfInvalidSetterAccess(metaData,
ExtendedClrTypeCode
.DateTimeOffset);
1417
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Decimal );
1423
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Double );
1429
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Guid );
1435
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Int16 );
1441
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Int32 );
1447
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Int64 );
1453
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.Single );
1459
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlBinary );
1464
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlBoolean );
1470
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlByte );
1476
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlBytes );
1482
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlChars );
1487
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlDateTime );
1493
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlDecimal );
1499
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlDouble );
1505
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlGuid );
1511
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlInt16 );
1517
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlInt32 );
1523
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlInt64 );
1529
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlMoney );
1535
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlSingle );
1541
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlString );
1546
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.SqlXml );
1552
ThrowIfInvalidSetterAccess( metaData,
ExtendedClrTypeCode
.String );
1561
ThrowIfInvalidSetterAccess(metaData,
ExtendedClrTypeCode
.TimeSpan);
1573
ExtendedClrTypeCode
typeCode,
1578
Debug.Assert( typeCode ==
ExtendedClrTypeCode
.Invalid ||
1579
typeCode ==
ExtendedClrTypeCode
.SByte ||
1580
typeCode ==
ExtendedClrTypeCode
.UInt16 ||
1581
typeCode ==
ExtendedClrTypeCode
.UInt32 ||
1582
typeCode ==
ExtendedClrTypeCode
.UInt64 ||
1583
typeCode ==
ExtendedClrTypeCode
.DBNull ||
1584
typeCode ==
ExtendedClrTypeCode
.Empty ||
1589
case
ExtendedClrTypeCode
.Invalid: throw ADP.UnknownDataType( value.GetType() );
1590
case
ExtendedClrTypeCode
.Boolean: SetBoolean_Unchecked( sink, setters, ordinal, (Boolean) value ); break;
1591
case
ExtendedClrTypeCode
.Byte: SetByte_Unchecked( sink, setters, ordinal, (Byte) value ); break;
1592
case
ExtendedClrTypeCode
.Char: {
1595
SetCompatibleValue( sink, setters, ordinal, metaData, charsValue,
ExtendedClrTypeCode
.CharArray, 0 );
1598
case
ExtendedClrTypeCode
.DateTime: SetDateTime_Checked( sink, setters, ordinal, metaData, (DateTime)value ); break;
1599
case
ExtendedClrTypeCode
.DBNull: SetDBNull_Unchecked( sink, setters, ordinal ); break;
1600
case
ExtendedClrTypeCode
.Decimal: SetDecimal_PossiblyMoney( sink, setters, ordinal, metaData, (Decimal) value ); break;
1601
case
ExtendedClrTypeCode
.Double: SetDouble_Unchecked( sink, setters, ordinal, (Double) value ); break;
1602
case
ExtendedClrTypeCode
.Empty: SetDBNull_Unchecked( sink, setters, ordinal ); break;
1603
case
ExtendedClrTypeCode
.Int16: SetInt16_Unchecked( sink, setters, ordinal, (Int16) value ); break;
1604
case
ExtendedClrTypeCode
.Int32: SetInt32_Unchecked( sink, setters, ordinal, (Int32) value ); break;
1605
case
ExtendedClrTypeCode
.Int64: SetInt64_Unchecked( sink, setters, ordinal, (Int64) value ); break;
1606
case
ExtendedClrTypeCode
.SByte: throw ADP.InvalidCast();
1607
case
ExtendedClrTypeCode
.Single: SetSingle_Unchecked( sink, setters, ordinal, (Single) value ); break;
1608
case
ExtendedClrTypeCode
.String: SetString_LengthChecked( sink, setters, ordinal, metaData, (string) value, offset ); break;
1609
case
ExtendedClrTypeCode
.UInt16: throw ADP.InvalidCast();
1610
case
ExtendedClrTypeCode
.UInt32: throw ADP.InvalidCast();
1611
case
ExtendedClrTypeCode
.UInt64: throw ADP.InvalidCast();
1612
case
ExtendedClrTypeCode
.Object: SetUdt_LengthChecked( sink, setters, ordinal, metaData, value ); break;
1613
case
ExtendedClrTypeCode
.ByteArray: SetByteArray_LengthChecked( sink, setters, ordinal, metaData, (byte[]) value, offset ); break;
1614
case
ExtendedClrTypeCode
.CharArray: SetCharArray_LengthChecked( sink, setters, ordinal, metaData, (char[]) value, offset ); break;
1615
case
ExtendedClrTypeCode
.Guid: SetGuid_Unchecked( sink, setters, ordinal, (Guid) value ); break;
1616
case
ExtendedClrTypeCode
.SqlBinary: SetSqlBinary_LengthChecked( sink, setters, ordinal, metaData, (SqlBinary) value, offset ); break;
1617
case
ExtendedClrTypeCode
.SqlBoolean: SetSqlBoolean_Unchecked( sink, setters, ordinal, (SqlBoolean) value ); break;
1618
case
ExtendedClrTypeCode
.SqlByte: SetSqlByte_Unchecked( sink, setters, ordinal, (SqlByte) value ); break;
1619
case
ExtendedClrTypeCode
.SqlDateTime: SetSqlDateTime_Checked( sink, setters, ordinal, metaData, (SqlDateTime) value ); break;
1620
case
ExtendedClrTypeCode
.SqlDouble: SetSqlDouble_Unchecked( sink, setters, ordinal, (SqlDouble) value ); break;
1621
case
ExtendedClrTypeCode
.SqlGuid: SetSqlGuid_Unchecked( sink, setters, ordinal, (SqlGuid) value ); break;
1622
case
ExtendedClrTypeCode
.SqlInt16: SetSqlInt16_Unchecked( sink, setters, ordinal, (SqlInt16) value ); break;
1623
case
ExtendedClrTypeCode
.SqlInt32: SetSqlInt32_Unchecked( sink, setters, ordinal, (SqlInt32) value ); break;
1624
case
ExtendedClrTypeCode
.SqlInt64: SetSqlInt64_Unchecked( sink, setters, ordinal, (SqlInt64) value ); break;
1625
case
ExtendedClrTypeCode
.SqlMoney: SetSqlMoney_Checked( sink, setters, ordinal, metaData, (SqlMoney) value ); break;
1626
case
ExtendedClrTypeCode
.SqlDecimal: SetSqlDecimal_Unchecked( sink, setters, ordinal, (SqlDecimal) value ); break;
1627
case
ExtendedClrTypeCode
.SqlSingle: SetSqlSingle_Unchecked( sink, setters, ordinal, (SqlSingle) value ); break;
1628
case
ExtendedClrTypeCode
.SqlString: SetSqlString_LengthChecked( sink, setters, ordinal, metaData, (SqlString) value, offset ); break;
1629
case
ExtendedClrTypeCode
.SqlChars: SetSqlChars_LengthChecked( sink, setters, ordinal, metaData, (SqlChars) value, offset ); break;
1630
case
ExtendedClrTypeCode
.SqlBytes: SetSqlBytes_LengthChecked( sink, setters, ordinal, metaData, (SqlBytes) value, offset ); break;
1631
case
ExtendedClrTypeCode
.SqlXml: SetSqlXml_Unchecked( sink, setters, ordinal, (SqlXml) value ); break;
1632
case
ExtendedClrTypeCode
.Stream: SetStream_Unchecked(sink, setters, ordinal, metaData, (StreamDataFeed) value); break;
1633
case
ExtendedClrTypeCode
.TextReader: SetTextReader_Unchecked(sink, setters, ordinal, metaData, (TextDataFeed) value); break;
1634
case
ExtendedClrTypeCode
.XmlReader: SetXmlReader_Unchecked(sink, setters, ordinal, ((XmlDataFeed) value)._source); break;
1649
ExtendedClrTypeCode
typeCode,
1657
Debug.Assert((
ExtendedClrTypeCode
.DataTable != typeCode &&
1658
ExtendedClrTypeCode
.DbDataReader != typeCode &&
1659
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord != typeCode) ||
1662
if (typeCode ==
ExtendedClrTypeCode
.DateTime)
1686
ExtendedClrTypeCode
typeCode,
1692
Debug.Assert( (
ExtendedClrTypeCode
.DataTable != typeCode &&
1693
ExtendedClrTypeCode
.DbDataReader != typeCode &&
1694
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord != typeCode) ||
1698
case
ExtendedClrTypeCode
.DataTable:
1701
case
ExtendedClrTypeCode
.DbDataReader:
1704
case
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord:
1707
case
ExtendedClrTypeCode
.TimeSpan:
1710
case
ExtendedClrTypeCode
.DateTimeOffset:
1729
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Int64 ) );
1733
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
1737
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Boolean ) );
1741
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlChars ) );
1745
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.DateTime ) );
1749
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlDecimal ) );
1753
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Double ) );
1757
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
1761
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Int32 ) );
1765
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlMoney ) );
1771
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlChars ) );
1775
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Single ) );
1779
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Guid ) );
1783
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.DateTime ) );
1787
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Int16 ) );
1791
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlMoney ) );
1795
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlChars ) );
1799
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
1803
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Byte ) );
1807
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
1811
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.String ) );
1815
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlXml ) );
1820
ExtendedClrTypeCode
typeCode = MetaDataUtilsSmi.DetermineExtendedTypeCode( o );
1825
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
1855
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Int64));
1859
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.ByteArray));
1863
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Boolean));
1867
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.CharArray));
1871
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTime));
1875
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlDecimal));
1887
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Double));
1891
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.ByteArray));
1895
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Int32));
1899
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlMoney));
1905
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.CharArray));
1909
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Single));
1913
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Guid));
1917
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTime));
1921
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Int16));
1925
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlMoney));
1929
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.CharArray));
1933
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.ByteArray));
1937
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Byte));
1941
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.ByteArray));
1945
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.String));
1949
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlXml));
1971
ExtendedClrTypeCode
typeCode = MetaDataUtilsSmi.DetermineExtendedTypeCodeForUseWithSqlDbType(metaData[i].SqlDbType, metaData[i].IsMultiValued, o, null,
1984
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.ByteArray));
1993
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTime));
1997
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.TimeSpan));
2009
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTimeOffset));
2049
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Int64 ) );
2053
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
2057
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Boolean ) );
2061
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlChars ) );
2065
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.DateTime ) );
2069
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlDecimal ) );
2073
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Double ) );
2077
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
2081
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Int32 ) );
2085
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlMoney ) );
2091
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlChars ) );
2095
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Single ) );
2099
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Guid ) );
2103
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.DateTime ) );
2107
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Int16 ) );
2111
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlMoney ) );
2115
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlChars ) );
2119
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
2123
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.Byte ) );
2127
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
2131
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.String ) );
2135
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlXml ) );
2140
ExtendedClrTypeCode
typeCode = MetaDataUtilsSmi.DetermineExtendedTypeCode( o );
2144
Debug.Assert( CanAccessSetterDirectly( metaData[i],
ExtendedClrTypeCode
.SqlBytes ) );
2172
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Int64));
2176
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlBytes));
2180
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Boolean));
2184
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlChars));
2188
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTime));
2192
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlDecimal));
2196
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Double));
2200
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlBytes));
2204
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Int32));
2208
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlMoney));
2214
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlChars));
2218
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Single));
2222
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Guid));
2226
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTime));
2230
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Int16));
2234
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlMoney));
2238
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlChars));
2242
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlBytes));
2246
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.Byte));
2250
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlBytes));
2254
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.String));
2258
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlXml));
2263
ExtendedClrTypeCode
typeCode = MetaDataUtilsSmi.DetermineExtendedTypeCode(o);
2267
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.SqlBytes));
2272
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTime));
2277
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.TimeSpan));
2293
Debug.Assert(CanAccessSetterDirectly(metaData[i],
ExtendedClrTypeCode
.DateTimeOffset));
2731
private static void ThrowIfInvalidSetterAccess( SmiMetaData metaData,
ExtendedClrTypeCode
setterTypeCode ) {
2743
private static bool CanAccessGetterDirectly( SmiMetaData metaData,
ExtendedClrTypeCode
setterTypeCode ) {
2745
Debug.Assert(
ExtendedClrTypeCode
.First == 0 && (int)
ExtendedClrTypeCode
.Last == __canAccessGetterDirectly.GetLength(0) - 1, "ExtendedClrTypeCodes does not match with __canAccessGetterDirectly" );
2747
Debug.Assert(
ExtendedClrTypeCode
.First <= setterTypeCode &&
ExtendedClrTypeCode
.Last >= setterTypeCode );
2754
(
ExtendedClrTypeCode
.DataTable == setterTypeCode ||
2755
ExtendedClrTypeCode
.DbDataReader == setterTypeCode ||
2756
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord == setterTypeCode)) {
2763
private static bool CanAccessSetterDirectly( SmiMetaData metaData,
ExtendedClrTypeCode
setterTypeCode ) {
2765
Debug.Assert(
ExtendedClrTypeCode
.First == 0 && (int)
ExtendedClrTypeCode
.Last == __canAccessSetterDirectly.GetLength(0) - 1, "ExtendedClrTypeCodes does not match with __canAccessSetterDirectly" );
2767
Debug.Assert(
ExtendedClrTypeCode
.First <= setterTypeCode &&
ExtendedClrTypeCode
.Last >= setterTypeCode );
2774
(
ExtendedClrTypeCode
.DataTable == setterTypeCode ||
2775
ExtendedClrTypeCode
.DbDataReader == setterTypeCode ||
2776
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord == setterTypeCode)) {
3645
ExtendedClrTypeCode
[] cellTypes = new
ExtendedClrTypeCode
[metaData.FieldMetaData.Count];
3647
cellTypes[i] =
ExtendedClrTypeCode
.Invalid;
3663
if (
ExtendedClrTypeCode
.Invalid == cellTypes[i]) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
6255
ExtendedClrTypeCode
typeCode = MetaDataUtilsSmi.DetermineExtendedTypeCodeForUseWithSqlDbType(requestMetaData[index].SqlDbType, requestMetaData[index].IsMultiValued, value, null /* parameters don't use CLR Type for UDTs */, SmiContextFactory.Instance.NegotiatedSmiVersion);
6259
ExtendedClrTypeCode
.Empty == typeCode ) {
6323
if (null != value &&
ExtendedClrTypeCode
.SqlXml != typeCode) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
8775
MSS.
ExtendedClrTypeCode
typeCode;
8782
typeCode = MSS.
ExtendedClrTypeCode
.IEnumerableOfSqlDataRecord;
8787
typeCode = MSS.
ExtendedClrTypeCode
.DBNull;
8794
typeCode = MSS.
ExtendedClrTypeCode
.DBNull;