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.7.0.0 (5.7.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
)
Public Shared Sub CheckPrecisionAndScale (
valueAsString As String,
ByRef value As Object,
scaleOverflowCorrectionActionToUse As ScaleOverflowCorrectionAction,
precision As Integer,
scale As Integer,
<OutAttribute> ByRef precisionViolation As Boolean,
<OutAttribute> ByRef scaleViolation As Boolean,
<OutAttribute> ByRef exceptionMessage As String
)
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