3 writes to _data
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
986
_data
= null;
3739
_data
= SqlBuffer.CreateBufferArray(metaDataSet.Length);
3760
_data
= SqlBuffer.CreateBufferArray(metaData.Length);
77 references to _data
System.Data (77)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (77)
1216
Debug.Assert(null !=
_data
, "Attempting to get variant internal storage type");
1217
Debug.Assert(i <
_data
.Length, "Reading beyond data length?");
1219
return
_data
[i].VariantInternalStorageType;
1423
return
_data
[i].Boolean;
1448
if (
_data
[i].IsNull) {
1454
return
_data
[i].SqlXml.CreateReader();
1485
if (
_data
[i].IsNull) {
1491
data =
_data
[i].SqlBinary.Value;
1501
return
_data
[i].Byte;
1573
if (
_data
[i] != null &&
_data
[i].IsNull) {
1916
if (
_data
[i].IsNull) {
1922
data =
_data
[i].SqlString.Value;
2113
if (
_data
[i] != null &&
_data
[i].IsNull) {
2233
DateTime dt =
_data
[i].DateTime;
2242
object temp = (object)
_data
[i].String;
2251
return
_data
[i].Decimal;
2256
return
_data
[i].Double;
2261
return
_data
[i].Single;
2266
return
_data
[i].SqlGuid.Value;
2271
return
_data
[i].Int16;
2276
return
_data
[i].Int32;
2281
return
_data
[i].Int64;
2286
return
_data
[i].SqlBoolean;
2291
return
_data
[i].SqlBinary;
2296
return
_data
[i].SqlByte;
2301
SqlBinary data =
_data
[i].SqlBinary;
2311
data =
_data
[i].KatmaiDateTimeSqlString;
2313
data =
_data
[i].SqlString;
2320
return
_data
[i].SqlDateTime;
2325
return
_data
[i].SqlDecimal;
2330
return
_data
[i].SqlGuid;
2335
return
_data
[i].SqlDouble;
2340
return
_data
[i].SqlInt16;
2345
return
_data
[i].SqlInt32;
2350
return
_data
[i].SqlInt64;
2355
return
_data
[i].SqlMoney;
2360
return
_data
[i].SqlSingle;
2368
return
_data
[i].KatmaiDateTimeSqlString;
2371
return
_data
[i].SqlString;
2381
sx =
_data
[i].IsNull ? SqlXml.Null :
_data
[i].SqlCachedBuffer.ToSqlXml();
2388
sx =
_data
[i].IsNull ? SqlXml.Null :
_data
[i].SqlCachedBuffer.ToSqlXml();
2394
object temp = (object)
_data
[i].String;
2423
return GetSqlValueFromSqlBufferInternal(
_data
[i], _metaData[i]);
2497
return
_data
[i].KatmaiDateTimeString;
2500
return
_data
[i].String;
2532
TimeSpan t =
_data
[i].Time;
2541
object temp = (object)
_data
[i].String;
2551
DateTimeOffset dto =
_data
[i].DateTimeOffset;
2560
object temp = (object)
_data
[i].String;
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]);
2703
_data
[i].Clear();
2935
return
_data
[i].IsNull;
3162
SqlBuffer.Clear(
_data
);
3237
SqlBuffer.Clear(
_data
);
3340
Debug.Assert(null !=
_data
[i], " data buffer is null?");
3376
if (!
_data
[_sharedState._nextColumnDataToRead].IsNull) {
3379
if (!_parser.TryReadSqlValue(
_data
[_sharedState._nextColumnDataToRead], columnMetaData, (int)_sharedState._columnDataBytesRemaining, _stateObj,
3454
(!
_data
[i].IsEmpty ||
_data
[i].IsNull) || // Or we should have data stored for the column (unless the column was null)
3462
Debug.Assert(
_data
[i].IsEmpty ||
_data
[i].IsNull, "re-reading column value?");
3469
_data
[_sharedState._nextColumnDataToRead - 1].Clear();
3515
TdsParser.GetNullSqlValue(
_data
[_sharedState._nextColumnDataToRead],
3529
if (!_parser.TryReadSqlValue(
_data
[_sharedState._nextColumnDataToRead], columnMetaData, (int)dataLength, _stateObj,
3738
if (
_data
== null ||
_data
.Length<metaDataSet.Length) {
4338
var data =
_data
;
4366
return
_data
[i].IsNull ? ADP.TrueTask : ADP.FalseTask;
4414
return
_data
[i].IsNull ? ADP.TrueTask : ADP.FalseTask;
4433
var data =
_data
;
4515
return Task.FromResult<T>(GetFieldValueFromSqlBufferInternal<T>(
_data
[i], _metaData[i]));