GenericDataProperty implements an attribute for a generic data property.
Creates a new instance of GenericDataProperty.
public Void GenericDataProperty(name, type)
Name | Type | Summary |
---|---|---|
name | String | The name of the property. |
type | DbType | The type of the property. |
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. |
Clears the state of the property.
public Void ClearState(value)
Name | Type | Summary |
---|---|---|
value | Object | The value that the data property field contains. |
Sets the state of the property.
public Void SetState(value)
Name | Type | Summary |
---|---|---|
value | Object | The value that the data property field contains. |
Indicates whether the property should be validated or not.
public Boolean ShouldValidate(action)
true if the property should be validated, otherwise false.
Name | Type | Summary |
---|---|---|
action | DataAction | The current action. |
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