5 writes to scale
System.Data (5)
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
3455
if (!stateObj.TryReadByte(out rec.
scale
)) {
3461
if (!stateObj.TryReadByte(out rec.
scale
)) {
4227
if (!stateObj.TryReadByte(out col.
scale
)) {
4233
if (!stateObj.TryReadByte(out col.
scale
)) {
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
862
this.
scale
= original.scale;
45 references to scale
System.Data (45)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
615
updateBulkCommandText.AppendFormat((IFormatProvider)null, "({0},{1})", metadata.precision, metadata.
scale
);
631
updateBulkCommandText.AppendFormat((IFormatProvider)null, "({0})", metadata.
scale
);
1320
byte scale = metadata.
scale
;
1326
scale = metadata.baseTI.
scale
;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
5251
thisParam.ScaleInternal = rec.
scale
;
5255
thisParam.ScaleInternal = rec.
scale
;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (23)
320
colMetaData.
scale
,
539
Debug.Assert(TdsEnums.UNKNOWN_PRECISION_SCALE == col.
scale
|| (0 <= col.
scale
&& col.
scale
<= 7), "Invalid scale for Time column: " + col.
scale
);
540
schemaRow[Size] = TdsEnums.WHIDBEY_TIME_LENGTH[TdsEnums.UNKNOWN_PRECISION_SCALE != col.
scale
? col.
scale
: col.metaType.Scale];
543
Debug.Assert(TdsEnums.UNKNOWN_PRECISION_SCALE == col.
scale
|| (0 <= col.
scale
&& col.
scale
<= 7), "Invalid scale for DateTime2 column: " + col.
scale
);
544
schemaRow[Size] = TdsEnums.WHIDBEY_DATETIME2_LENGTH[TdsEnums.UNKNOWN_PRECISION_SCALE != col.
scale
? col.
scale
: col.metaType.Scale];
547
Debug.Assert(TdsEnums.UNKNOWN_PRECISION_SCALE == col.
scale
|| (0 <= col.
scale
&& col.
scale
<= 7), "Invalid scale for DateTimeOffset column: " + col.
scale
);
548
schemaRow[Size] = TdsEnums.WHIDBEY_DATETIMEOFFSET_LENGTH[TdsEnums.UNKNOWN_PRECISION_SCALE != col.
scale
? col.
scale
: col.metaType.Scale];
606
if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.baseTI.
scale
) {
607
schemaRow[Scale] = col.baseTI.
scale
;
613
else if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.
scale
) {
614
schemaRow[Scale] = col.
scale
;
fx\src\data\System\Data\SqlClient\TdsParser.cs (15)
4237
Debug.Assert(0 <= col.
scale
&& col.
scale
<= 7);
4244
col.length = MetaType.GetTimeSizeFromScale(col.
scale
);
4248
col.length = 3 + MetaType.GetTimeSizeFromScale(col.
scale
);
4252
col.length = 5 + MetaType.GetTimeSizeFromScale(col.
scale
);
5049
byte denormalizedScale = md.baseTI.
scale
;
5211
value.SetToDecimal (md.baseTI.precision, md.baseTI.
scale
, fPositive, bits);
5313
if (!TryReadSqlDecimal(value, length, md.precision, md.
scale
, stateObj)) {
5393
if (!TryReadSqlDateTime(value, tdsType, length, md.
scale
, stateObj)) {
9232
stateObj.WriteByte(mdPriv.
scale
);
9240
stateObj.WriteByte(mdPriv.
scale
);
9334
stateObj.WriteByte(md.
scale
);
9351
stateObj.WriteByte(md.
scale
);
9474
metadata.baseTI.
scale
,
9616
internalWriteTask = WriteValue(value, metatype, metadata.
scale
, ccb, ccbStringBytes, 0, stateObj, metadata.length, isDataFeed);
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
862
this.scale = original.
scale
;