FloatDataProperty

FloatDataProperty implements a data property attribute for a float data property.

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

Constructors

FloatDataProperty

Initializes a new instance of FloatDataProperty.

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

Properties

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.