DecimalDataProperty

DecimalDataProperty implements a data property attribute for a decimal data property.

Namespace:
Inetdev.Data
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.GenericDataProperty

Constructors

DecimalDataProperty

Creates a new instance of DecimalDataProperty.

Signature:
public Void DecimalDataProperty(name, type)
Parameters
Name Type Summary
name String The name of the property.
type DbType The type of the property.

Properties

Decimals

Gets or sets the maximum decimal digits that the property supports.

Signature:
public Int32 Decimals { get; set; }

Integers

Gets or sets the maximum integer digits the the property supports.

Signature:
public Int32 Integers { get; set; }

MaxValue

Gets or sets the maximum value that the property can hold.

Signature:
public Double MaxValue { get; set; }

MinValue

Gets or sets the minimum value that the property can hold.

Signature:
public Double MinValue { get; set; }

PositiveOnly

Gets or sets whether a valid number must be greater than zero.

Signature:
public Boolean PositiveOnly { get; set; }

Methods

CalculateHasData

Checks whether the property is considered to have a data.

Signature:
protected Boolean CalculateHasData(value)
Returns

true is the property is considered to have data; otherwise false.

Parameters
Name Type Summary
value Object The value that the data property field contains.

Validate

Validates the specified value to see if it is a valid value for the property.

Signature:
public Void Validate(value, action)
Remarks

Throwns validation exceptions if the value is not valid.

Parameters
Name Type Summary
value Object The value to validate.
action DataAction The current action that is performing.