DecimalDataProperty implements a data property attribute for a decimal data property.
Creates a new instance of DecimalDataProperty.
public Void DecimalDataProperty(name, type)
Name | Type | Summary |
---|---|---|
name | String | The name of the property. |
type | DbType | The type of the property. |
Gets or sets the maximum decimal digits that the property supports.
public Int32 Decimals { get; set; }
Gets or sets the maximum integer digits the the property supports.
public Int32 Integers { get; set; }
Gets or sets the maximum value that the property can hold.
public Double MaxValue { get; set; }
Gets or sets the minimum value that the property can hold.
public Double MinValue { get; set; }
Gets or sets whether a valid number must be greater than zero.
public Boolean PositiveOnly { get; set; }
Checks whether the property is considered to have a data.
protected Boolean CalculateHasData(value)
true is the property is considered to have data; otherwise false.
Name | Type | Summary |
---|---|---|
value | Object | The value that the data property field contains. |
Validates the specified value to see if it is a valid value for the property.
public Void Validate(value, action)
Throwns validation exceptions if the value is not valid.
Name | Type | Summary |
---|---|---|
value | Object | The value to validate. |
action | DataAction | The current action that is performing. |
In this document