Click or drag to resize

FieldUtilitiesCheckPrecisionAndScale Method

Checks the precision and scale of the value passed in as string. Assumes value is numeric.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public static void CheckPrecisionAndScale(
	string valueAsString,
	ref Object value,
	ScaleOverflowCorrectionAction scaleOverflowCorrectionActionToUse,
	int precision,
	int scale,
	out bool precisionViolation,
	out bool scaleViolation,
	out string exceptionMessage
)

Parameters

valueAsString
Type: SystemString
The value as string.
value
Type: SystemObject
The value. Will be altered if a scale overflow is detected and the scaleOverflowCorrectionActionToUse value dictates that the value has to be altered to make it fit the scale.
scaleOverflowCorrectionActionToUse
Type: SD.LLBLGen.Pro.ORMSupportClassesScaleOverflowCorrectionAction
The scale overflow correction action to use.
precision
Type: SystemInt32
The precision.
scale
Type: SystemInt32
The scale.
precisionViolation
Type: SystemBoolean
if set to true [precision violation].
scaleViolation
Type: SystemBoolean
if set to true [scale violation].
exceptionMessage
Type: SystemString
The exception message.
See Also