1 write to _value
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
115
_value
= value._value;
78 references to _value
System.Data (78)
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (78)
115
_value = value.
_value
;
141
return
_value
._boolean;
147
_value
._boolean = value;
158
return
_value
._byte;
164
_value
._byte = value;
182
return DateTime.MinValue.AddDays(
_value
._int32);
185
return new DateTime(GetTicksFromDateTime2Info(
_value
._dateTime2Info));
188
return SqlDateTime.ToDateTime(
_value
._dateTimeInfo.daypart,
_value
._dateTimeInfo.timepart);
199
if (
_value
._numericInfo.data4 != 0 ||
_value
._numericInfo.scale > 28) {
202
return new Decimal(
_value
._numericInfo.data1,
_value
._numericInfo.data2,
_value
._numericInfo.data3, !
_value
._numericInfo.positive,
_value
._numericInfo.scale);
205
long l =
_value
._int64;
222
return
_value
._double;
228
_value
._double = value;
247
return
_value
._int16;
253
_value
._int16 = value;
264
return
_value
._int32;
270
_value
._int32 = value;
281
return
_value
._int64;
287
_value
._int64 = value;
298
return
_value
._single;
304
_value
._single = value;
366
byte scale =
_value
._timeInfo.scale;
367
return new DateTime(
_value
._timeInfo.ticks).ToString(__katmaiTimeFormatByScale[scale], DateTimeFormatInfo.InvariantInfo);
370
byte scale =
_value
._dateTime2Info.timeInfo.scale;
375
byte scale =
_value
._dateTimeOffsetInfo.dateTime2Info.timeInfo.scale;
402
return new TimeSpan(
_value
._timeInfo.ticks);
414
TimeSpan offset = new TimeSpan(0,
_value
._dateTimeOffsetInfo.offset, 0);
416
return new DateTimeOffset(GetTicksFromDateTime2Info(
_value
._dateTimeOffsetInfo.dateTime2Info) + offset.Ticks, offset);
448
return new SqlBoolean(
_value
._boolean);
460
return new SqlByte(
_value
._byte);
508
return new SqlDateTime(
_value
._dateTimeInfo.daypart,
_value
._dateTimeInfo.timepart);
520
return new SqlDecimal(
_value
._numericInfo.precision,
521
_value
._numericInfo.scale,
522
_value
._numericInfo.positive,
523
_value
._numericInfo.data1,
524
_value
._numericInfo.data2,
525
_value
._numericInfo.data3,
526
_value
._numericInfo.data4
539
return new SqlDouble(
_value
._double);
566
return new SqlInt16(
_value
._int16);
578
return new SqlInt32(
_value
._int32);
590
return new SqlInt64(
_value
._int64);
602
return new SqlMoney(
_value
._int64, 1/*ignored*/);
614
return new SqlSingle(
_value
._single);
815
_value
._dateTimeInfo.daypart = daypart;
816
_value
._dateTimeInfo.timepart = timepart;
823
_value
._numericInfo.precision = precision;
824
_value
._numericInfo.scale = scale;
825
_value
._numericInfo.positive = positive;
826
_value
._numericInfo.data1 = bits[0];
827
_value
._numericInfo.data2 = bits[1];
828
_value
._numericInfo.data3 = bits[2];
829
_value
._numericInfo.data4 = bits[3];
836
_value
._int64 = value;
859
_value
._int32 = GetDateFromByteArray(bytes, 0);
867
_value
._int32 = date.Subtract(DateTime.MinValue).Days;
875
FillInTimeInfo(ref
_value
._timeInfo, bytes, length, scale, denormalizedScale);
883
_value
._timeInfo.ticks = timeSpan.Ticks;
884
_value
._timeInfo.scale = scale;
892
FillInTimeInfo(ref
_value
._dateTime2Info.timeInfo, bytes, length - 3, scale, denormalizedScale); // remaining 3 bytes is for date
893
_value
._dateTime2Info.date = GetDateFromByteArray(bytes, length - 3); // 3 bytes for date
901
_value
._dateTime2Info.timeInfo.ticks = dateTime.TimeOfDay.Ticks;
902
_value
._dateTime2Info.timeInfo.scale = scale;
903
_value
._dateTime2Info.date = dateTime.Subtract(DateTime.MinValue).Days;
911
FillInTimeInfo(ref
_value
._dateTimeOffsetInfo.dateTime2Info.timeInfo, bytes, length - 5, scale, denormalizedScale); // remaining 5 bytes are for date and offset
912
_value
._dateTimeOffsetInfo.dateTime2Info.date = GetDateFromByteArray(bytes, length - 5); // 3 bytes for date
913
_value
._dateTimeOffsetInfo.offset = (Int16)(bytes[length - 2] + (bytes[length - 1] << 8)); // 2 bytes for offset (Int16)
922
_value
._dateTimeOffsetInfo.dateTime2Info.timeInfo.ticks = utcDateTime.TimeOfDay.Ticks;
923
_value
._dateTimeOffsetInfo.dateTime2Info.timeInfo.scale = scale;
924
_value
._dateTimeOffsetInfo.dateTime2Info.date = utcDateTime.Subtract(DateTime.MinValue).Days;
925
_value
._dateTimeOffsetInfo.offset = (Int16)dateTimeOffset.Offset.TotalMinutes;