2 writes to
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
575
metaDataSet
[
i] = null;
704
metaDataSet
[
i] = null;
85 references to
System.Data (85)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
567
_SqlMetaData metadata = metaDataSet
[
i];
1111
MetaType mtSource = _SqlDataReaderRowSource.MetaData
[
sourceOrdinal].metaType;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (73)
285
_SqlMetaData colMetaData = metaData
[
index];
509
_SqlMetaData col = md
[
i];
1151
if (!(_metaData
[
i].isHidden)) {
1167
return GetDataTypeNameInternal(_metaData
[
i]);
1232
return GetFieldTypeInternal(_metaData
[
i]);
1283
_SqlMetaData sqlMetaData = MetaData
[
i];
1311
Debug.Assert(null != _metaData
[
i].column, "MDAC 66681");
1312
return _metaData
[
i].column;
1321
return GetProviderSpecificFieldTypeInternal(_metaData
[
i]);
1431
MetaType mt = _metaData
[
i].metaType;
1435
throw SQL.XmlReaderNotSupportOnColumnType(_metaData
[
i].column);
1463
if (_metaData
[
i] != null && _metaData
[
i].cipherMD != null) {
1464
throw SQL.StreamNotSupportOnEncryptedColumn(_metaData
[
i].column);
1469
MetaType mt = _metaData
[
i].metaType;
1471
throw SQL.StreamNotSupportOnColumnType(_metaData
[
i].column);
1511
MetaType mt = _metaData
[
i].metaType;
1513
throw SQL.NonBlobColumn(_metaData
[
i].column);
1562
if (_metaData
[
i] != null && _metaData
[
i].cipherMD != null) {
1563
throw SQL.SequentialAccessNotSupportedOnEncryptedColumn(_metaData
[
i].column);
1578
if ((-1 == _sharedState._columnDataBytesRemaining) && (_metaData
[
i].metaType.IsPlp)) {
1592
if (_metaData
[
i].metaType.IsPlp) {
1611
if ((cb > _sharedState._columnDataBytesRemaining) && !_metaData
[
i].metaType.IsPlp) {
1628
if (_metaData
[
i].metaType.IsPlp) {
1667
if (_metaData
[
i].metaType.IsBinType) {
1671
Debug.Assert(_metaData
[
i].metaType.IsLong, "non long type?");
1672
Debug.Assert(_metaData
[
i].metaType.IsCharType, "non-char type?");
1675
if (_metaData
[
i].metaType.IsNCharType) {
1814
if (_metaData
[
i].metaType.IsPlp) {
1876
if (_metaData
[
i].cipherMD != null) {
1877
Debug.Assert(_metaData
[
i].baseTI != null, "_metaData[i].baseTI should not be null.");
1878
mt = _metaData
[
i].baseTI.metaType;
1881
mt = _metaData
[
i].metaType;
1887
throw SQL.TextReaderNotSupportOnColumnType(_metaData
[
i].column);
1892
if (_metaData
[
i].cipherMD != null) {
1893
throw SQL.SequentialAccessNotSupportedOnEncryptedColumn(_metaData
[
i].column);
1904
encoding = _metaData
[
i].encoding;
1945
if (_metaData
[
i].cipherMD != null) {
1946
Debug.Assert(_metaData
[
i].baseTI != null, @"_metaData[i].baseTI should not be null.");
1947
mt = _metaData
[
i].baseTI.metaType;
1950
mt = _metaData
[
i].metaType;
1956
if (_metaData
[
i].cipherMD != null) {
1957
Debug.Assert(_metaData
[
i].baseTI != null, @"_metaData[i].baseTI should not be null.");
1958
sqlDbType = _metaData
[
i].baseTI.type;
1961
sqlDbType = _metaData
[
i].type;
1973
if (_metaData
[
i].cipherMD != null) {
1974
throw SQL.SequentialAccessNotSupportedOnEncryptedColumn(_metaData
[
i].column);
2100
Debug.Assert(_metaData
[
i].metaType.IsPlp, "GetCharsFromPlpData called on a non-plp column!");
2104
if (!_metaData
[
i].metaType.IsCharType) {
2105
throw SQL.NonCharColumn(_metaData
[
i].column);
2128
bool isUnicode = _metaData
[
i].metaType.IsNCharType;
2168
cch = (long) _parser.ReadPlpAnsiChars(ref buffer, bufferIndex, length, _metaData
[
i], _stateObj);
2235
if (_typeSystem <= SqlConnectionString.TypeSystem.SQLServer2005 && _metaData
[
i].IsNewKatmaiDateTimeType) {
2309
if (_typeSystem <= SqlConnectionString.TypeSystem.SQLServer2005 && _metaData
[
i].IsNewKatmaiDateTimeType)
2367
if (_typeSystem <= SqlConnectionString.TypeSystem.SQLServer2005 && _metaData
[
i].IsNewKatmaiDateTimeType) {
2423
return GetSqlValueFromSqlBufferInternal(_data[i], _metaData
[
i]);
2496
if (_typeSystem <= SqlConnectionString.TypeSystem.SQLServer2005 && _metaData
[
i].IsNewKatmaiDateTimeType) {
2576
return GetValueFromSqlBufferInternal(_data[i], _metaData
[
i]);
2629
return GetFieldValueFromSqlBufferInternal<T>(_data[i], _metaData
[
i]);
2699
values[_metaData.indexMap[i]] = GetValueFromSqlBufferInternal(_data[i], _metaData
[
i]);
3377
_SqlMetaData columnMetaData = _metaData
[
_sharedState._nextColumnDataToRead];
3455
(_metaData
[
i].type == SqlDbType.Timestamp), // Or Dev11 Bug #336820, Dev10 Bug #479607 (SqlClient: IsDBNull always returns false for timestamp datatype)
3491
_SqlMetaData columnMetaData = _metaData
[
_sharedState._nextColumnHeaderToRead];
3557
if ((_lastColumnWithDataChunkRead == _sharedState._nextColumnDataToRead) && (_metaData
[
_lastColumnWithDataChunkRead].metaType.IsPlp)) {
3588
var metaType = _metaData
[
currentColumn].metaType;
3594
byte typeAndMask = (byte)(_metaData
[
currentColumn].tdsType & TdsEnums.SQLLenMask);
3596
if (0 != (_metaData
[
currentColumn].tdsType & 0x80)) {
3600
else if (0 == (_metaData
[
currentColumn].tdsType & 0x0c)) {
3616
bytesRemaining = checked(bytesRemaining - _metaData
[
currentColumn].length);
3634
if ((_sharedState._nextColumnHeaderToRead > 0) && (_metaData
[
_sharedState._nextColumnHeaderToRead - 1].metaType.IsPlp)) {
4436
return Task.FromResult<T>(GetFieldValueFromSqlBufferInternal<T>(data[i], metaData
[
i]));
4515
return Task.FromResult<T>(GetFieldValueFromSqlBufferInternal<T>(_data[i], _metaData
[
i]));
fx\src\data\System\Data\SqlClient\TdsParser.cs (10)
3798
if ((sharedState._nextColumnHeaderToRead > 0) && (metadata
[
sharedState._nextColumnHeaderToRead - 1].metaType.IsPlp)) {
3892
_SqlMetaData col = altMetaDataSet
[
i];
4123
if (!TryCommonProcessMetaData(stateObj, newMetaData
[
i], cipherTable, fColMD: true, columnEncryptionSetting: columnEncryptionSetting)) {
4574
_SqlMetaData col = columns
[
i];
4721
_SqlMetaData md = columns
[
i];
4898
_SqlMetaData md = columns
[
i];
9154
if (null != metadataCollection
[
col]) {
9155
_SqlMetaData md = metadataCollection
[
col];
9298
if (metadataCollection
[
i] != null) {
9299
_SqlMetaData md = metadataCollection
[
i];