24 references to Scale
System.Data (24)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (6)
657
byte tempNonFractPrec = checked((byte) (value.Precision - value.
Scale
));
662
if (value.
Scale
> scale) {
663
scale = value.
Scale
;
692
byte tempNonFractPrec = checked((byte)(value.Precision - value.
Scale
));
697
if (value.
Scale
> scale) {
698
scale = value.
Scale
;
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (1)
364
case StorageType.SqlDecimal: return new SmiMetaData(SqlDbType.Decimal, 17, ((SqlDecimal)_object).Precision, ((SqlDecimal)_object).
Scale
, 0, SqlCompareOptions.None, null);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
1200
targetBuffer.SetToDecimal( dec.Precision, dec.
Scale
, dec.IsPositive, dec.Data );
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
1141
smd = new SqlMetaData(name, SqlDbType.Decimal, sd.Precision, sd.
Scale
);
1233
scale = sd.
Scale
;
1464
if (!value.IsNull && (value.Precision != Precision || value.
Scale
!= Scale))
1467
if (value.
Scale
!= Scale)
1469
value = SqlDecimal.AdjustScale(value, Scale - value.
Scale
, false /* Don't round, truncate. */);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
1358
if (sqlValue.
Scale
!= scale) {
1364
sqlValue = SqlDecimal.ConvertToPrecScale(sqlValue, precision, sqlValue.
Scale
);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
1633
return ((SqlDecimal) value).
Scale
;
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
6384
if (d.
Scale
!= newScale) {
6385
return SqlDecimal.AdjustScale(d, newScale - d.
Scale
, false /* Don't round, truncate. MDAC 69229 */);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
468
_stateObj.WriteByte(value.
Scale
); // propbytes: scale
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (2)
3149
int scale = n.
Scale
;
3153
n.AdjustScale(scale - (int)n.
Scale
, true);
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (1)
333
x.AdjustScale(-x.
Scale
, true);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (2)
107
snum.AdjustScale(x_iMoneyScale - snum.
Scale
, true);
108
Debug.Assert(snum.
Scale
== x_iMoneyScale);