14 references to MaxPrecision
System.Data (14)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (3)
671
if (SqlDecimal.
MaxPrecision
< precision) {
705
if (SqlDecimal.
MaxPrecision
< precision) {
897
precision > SqlDecimal.
MaxPrecision
||
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
382
Debug.Assert( MinPrecision <= precision && SqlDecimal.
MaxPrecision
>= precision, "Invalid precision: " + precision );
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
601
if (precision > SqlDecimal.
MaxPrecision
|| scale > precision)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
470
return ADP.InvalidOperation(Res.GetString(Res.SqlParameter_InvalidTableDerivedPrecisionForTvp, precision, columnName, System.Data.SqlTypes.SqlDecimal.
MaxPrecision
));
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (8)
425
Debug.Assert ((precision ==
MaxPrecision
+1) || VerifyPrecision(precision), "Calcualted precision too low?");
449
Debug.Assert(precision<=
MaxPrecision
, "Precision > MaxPrecision");
1223
SQLDebug.Check (ResInteger <=
MaxPrecision
);
1232
ResPrec = Math.Min(
MaxPrecision
, ResPrec);
1883
SQLDebug.Check(bPrec <=
MaxPrecision
&& bPrec > 0, "bPrec <= MaxPrecision && bPrec > 0",
2756
if (bPrec < 1 || bPrec >
MaxPrecision
|| bScale < 0 || bScale > MaxScale || bScale > bPrec)
2761
if (iPrec < 1 || iPrec >
MaxPrecision
|| iScale < 0 || iScale > MaxScale || iScale > iPrec)
3155
n.m_bPrec =
MaxPrecision
;