Click or drag to resize

ScaleOverflowCorrectionAction Enumeration

Enum which defines the action to take when a scale overflow is detected in the build-in validation for precision/scale values. This validation takes place when an entity field is set to a value and the validation isn't bypassed.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public enum ScaleOverflowCorrectionAction
Members
  Member nameValueDescription
None0 No action is taken, and the exception resulting from the scale overflow detection is thrown.
Truncate1 Default. Chop off the digits which overflow the scale. Examples: scale is 2: 10.456 becomes 10.45. 10.450 becomes 10.45
Round2 Round the fraction to a value which fits the scale and round values using Math.Round(value, scale)
See Also