GenericDataProperty

GenericDataProperty implements an attribute for a generic data property.

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

Constructors

GenericDataProperty

Creates a new instance of GenericDataProperty.

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

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.

ClearState

Clears the state of the property.

Signature:
public Void ClearState(value)
Parameters
Name Type Summary
value Object The value that the data property field contains.

SetState

Sets the state of the property.

Signature:
public Void SetState(value)
Parameters
Name Type Summary
value Object The value that the data property field contains.

ShouldValidate

Indicates whether the property should be validated or not.

Signature:
public Boolean ShouldValidate(action)
Returns

true if the property should be validated, otherwise false.

Parameters
Name Type Summary
action DataAction The current action.

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.