Back to Devexpress

RuleBaseAttribute Class

expressappframework-devexpress-dot-persistent-dot-validation-09c07108.md

latest3.8 KB
Original Source

RuleBaseAttribute Class

Represents a base class for validation system attributes.

Namespace : DevExpress.Persistent.Validation

Assembly : DevExpress.Persistent.Base.v25.2.dll

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
public abstract class RuleBaseAttribute :
    Attribute,
    IRuleBaseAttribute,
    IRuleCollectionPropertyProperties,
    IRuleBaseProperties
vb
Public MustInherit Class RuleBaseAttribute
    Inherits Attribute
    Implements IRuleBaseAttribute,
               IRuleCollectionPropertyProperties,
               IRuleBaseProperties

Remarks

In the XAF , to define a particular validation rule for a business class or its property, you can use built-in validation attributes. The RuleBaseAttribute represents a base class for all validation attributes. It provides properties that can be used in any descendent attribute. For details, refer to the class’ member list.

Declare the RuleBaseAttribute descendant’s Properties property as non-public. Use the new modifier to hide the base class Properties property.

Note

Alternatively, you can define validation rules in the Application Model. See the Validation Rules topic, for details.

Implements

IRuleCollectionPropertyProperties

IRuleBaseProperties

Inheritance

Show 14 items

Object Attribute RuleBaseAttribute RuleCombinationOfPropertiesIsUniqueAttribute

RuleCriteriaAttribute

RuleFromBoolPropertyAttribute

RuleIsReferencedAttribute

RuleObjectExistsAttribute

RuleRangeAttribute

RuleRegularExpressionAttribute

RuleRequiredFieldAttribute

RuleStringComparisonAttribute

RuleUniqueValueAttribute

RuleValueComparisonAttribute

See Also

RuleBaseAttribute Members

Validation Rules

DevExpress.Persistent.Validation Namespace