DataProperty implements IDataProperty as an Attribute, and it's the base class for those that implements specific data property functionality.
Creates a new instance of DataProperty.
public Void DataProperty(name, type)
Name | Type | Summary |
---|---|---|
name | String | The name of the property. |
type | DbType | The type of the property. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when name is null or empty. |
Gets or sets the automatic type for the property.
public AutomaticType AutomaticType { get; set; }
Get or sets the caption for the property.
public String Caption { get; set; }
Gets or sets the default value for the property.
public Object DefaultValue { get; set; }
Gets or sets the name of the internal field that holds the property value.
public String FieldName { get; set; }
Gets or sets if the data property has data.
public Boolean HasData { get; set; }
Gets or sets a hint message.
public String Hint { get; set; }
Gets or set a message to be shown when the property content is invalid.
public String InvalidContentMessage { get; set; }
Gets or sets if the data property has been modified.
public Boolean IsModified { get; set; }
Gets whether this property is part of the primary key.
public Boolean IsPrimaryKey { get; }
Gets or sets whether the property is mandatory.
public Boolean Mandatory { get; set; }
Gets or sets the name of the property.
public String Name { get; set; }
Gets or sets whether the default SetDataPropertyValue method must be omitted.
public Boolean OmitSetDataPropertyValue { get; set; }
Gets or sets the position of the property in the object primary key.
public Int32 PrimaryKey { get; set; }
Gets or sets the protection applied to the property.
public ProtectionType Protection { get; set; }
Gets or sets the message to show when a mandatory property was not provided.
public String RequiredMessage { get; set; }
Gets or sets the Type of the resource used for localization.
public Type ResourceType { get; set; }
Clears the state of the property.
public Void ClearState(value)
Name | Type | Summary |
---|---|---|
value | Object | The value that the data property field contains. |
Gets the localized message for the specified resource name.
protected String GetLocalizedMessage(name)
A localized message or name.
Name | Type | Summary |
---|---|---|
name | String | Resource name. |
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