Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Collapse]eXpressApp Framework
 [Expand]Fundamentals
 [Expand]Getting Started
 [Expand]Concepts
 [Expand]Design-Time Features
 [Expand]Deployment
 [Expand]Task-Based Help
  Frequently Asked Questions (FAQ)
 [Collapse]API Reference
  [Expand]DevExpress.EasyTest.Framework
  [Expand]DevExpress.ExpressApp
  [Expand]DevExpress.ExpressApp.Actions
  [Expand]DevExpress.ExpressApp.AuditTrail
  [Expand]DevExpress.ExpressApp.Chart
  [Expand]DevExpress.ExpressApp.Chart.Web
  [Expand]DevExpress.ExpressApp.Chart.Win
  [Expand]DevExpress.ExpressApp.CloneObject
  [Expand]DevExpress.ExpressApp.ConditionalAppearance
  [Expand]DevExpress.ExpressApp.Dashboards
  [Expand]DevExpress.ExpressApp.Dashboards.Web
  [Expand]DevExpress.ExpressApp.Dashboards.Win
  [Expand]DevExpress.ExpressApp.Data
  [Expand]DevExpress.ExpressApp.DC
  [Expand]DevExpress.ExpressApp.DC.ClassGeneration
  [Expand]DevExpress.ExpressApp.Editors
  [Expand]DevExpress.ExpressApp.EF
  [Expand]DevExpress.ExpressApp.EF.Utils
  [Expand]DevExpress.ExpressApp.FileAttachments.Web
  [Expand]DevExpress.ExpressApp.FileAttachments.Win
  [Expand]DevExpress.ExpressApp.Filtering
  [Expand]DevExpress.ExpressApp.HtmlPropertyEditor.Web
  [Expand]DevExpress.ExpressApp.HtmlPropertyEditor.Win
  [Expand]DevExpress.ExpressApp.Kpi
  [Expand]DevExpress.ExpressApp.Layout
  [Expand]DevExpress.ExpressApp.Maps.Mobile
  [Expand]DevExpress.ExpressApp.Maps.Mobile.Editors
  [Expand]DevExpress.ExpressApp.Maps.Web
  [Expand]DevExpress.ExpressApp.Maps.Web.Helpers
  [Expand]DevExpress.ExpressApp.MiddleTier
  [Expand]DevExpress.ExpressApp.Mobile
  [Expand]DevExpress.ExpressApp.Mobile.Editors
  [Expand]DevExpress.ExpressApp.Mobile.MobileModel
  [Expand]DevExpress.ExpressApp.Mobile.SystemModule
  [Expand]DevExpress.ExpressApp.Mobile.Templates
  [Expand]DevExpress.ExpressApp.Model
  [Expand]DevExpress.ExpressApp.Model.Core
  [Expand]DevExpress.ExpressApp.Model.NodeGenerators
  [Expand]DevExpress.ExpressApp.ModelEditor
  [Expand]DevExpress.ExpressApp.Notifications
  [Expand]DevExpress.ExpressApp.Notifications.Web
  [Expand]DevExpress.ExpressApp.Notifications.Win
  [Expand]DevExpress.ExpressApp.PivotChart
  [Expand]DevExpress.ExpressApp.PivotChart.Web
  [Expand]DevExpress.ExpressApp.PivotChart.Win
  [Expand]DevExpress.ExpressApp.PivotGrid
  [Expand]DevExpress.ExpressApp.PivotGrid.Web
  [Expand]DevExpress.ExpressApp.PivotGrid.Win
  [Expand]DevExpress.ExpressApp.Reports
  [Expand]DevExpress.ExpressApp.Reports.Web
  [Expand]DevExpress.ExpressApp.Reports.Win
  [Expand]DevExpress.ExpressApp.ReportsV2
  [Expand]DevExpress.ExpressApp.ReportsV2.Web
  [Expand]DevExpress.ExpressApp.ReportsV2.Win
  [Expand]DevExpress.ExpressApp.Scheduler
  [Expand]DevExpress.ExpressApp.Scheduler.Web
  [Expand]DevExpress.ExpressApp.Scheduler.Win
  [Expand]DevExpress.ExpressApp.ScriptRecorder
  [Expand]DevExpress.ExpressApp.ScriptRecorder.Web
  [Expand]DevExpress.ExpressApp.ScriptRecorder.Win
  [Expand]DevExpress.ExpressApp.Security
  [Expand]DevExpress.ExpressApp.Security.Adapters
  [Expand]DevExpress.ExpressApp.Security.ClientServer.Wcf
  [Expand]DevExpress.ExpressApp.Security.EF.Adapters
  [Expand]DevExpress.ExpressApp.Security.Strategy
  [Expand]DevExpress.ExpressApp.Security.Xpo.Adapters
  [Expand]DevExpress.ExpressApp.StateMachine
  [Expand]DevExpress.ExpressApp.SystemModule
  [Expand]DevExpress.ExpressApp.Templates
  [Expand]DevExpress.ExpressApp.Templates.ActionContainers
  [Expand]DevExpress.ExpressApp.TreeListEditors
  [Expand]DevExpress.ExpressApp.TreeListEditors.Web
  [Expand]DevExpress.ExpressApp.TreeListEditors.Win
  [Expand]DevExpress.ExpressApp.Updating
  [Expand]DevExpress.ExpressApp.Utils
  [Expand]DevExpress.ExpressApp.Validation
  [Expand]DevExpress.ExpressApp.Validation.Web
  [Expand]DevExpress.ExpressApp.Validation.Win
  [Expand]DevExpress.ExpressApp.ViewVariantsModule
  [Expand]DevExpress.ExpressApp.Web
  [Expand]DevExpress.ExpressApp.Web.Controls
  [Expand]DevExpress.ExpressApp.Web.Editors
  [Expand]DevExpress.ExpressApp.Web.Editors.ASPx
  [Expand]DevExpress.ExpressApp.Web.SystemModule
  [Expand]DevExpress.ExpressApp.Web.Templates
  [Expand]DevExpress.ExpressApp.Web.Utils
  [Expand]DevExpress.ExpressApp.Win
  [Expand]DevExpress.ExpressApp.Win.Core
  [Expand]DevExpress.ExpressApp.Win.Editors
  [Expand]DevExpress.ExpressApp.Win.Model
  [Expand]DevExpress.ExpressApp.Win.SystemModule
  [Expand]DevExpress.ExpressApp.Win.Templates
  [Expand]DevExpress.ExpressApp.Win.Templates.Navigation
  [Expand]DevExpress.ExpressApp.Workflow
  [Expand]DevExpress.ExpressApp.Workflow.Win
  [Expand]DevExpress.ExpressApp.Xpo
  [Expand]DevExpress.ExpressApp.Xpo.Utils
  [Expand]DevExpress.Persistent.Base
  [Expand]DevExpress.Persistent.Base.General
  [Expand]DevExpress.Persistent.Base.ReportsV2
  [Expand]DevExpress.Persistent.Base.Security
  [Expand]DevExpress.Persistent.BaseImpl
  [Expand]DevExpress.Persistent.BaseImpl.EF
  [Expand]DevExpress.Persistent.BaseImpl.EF.PermissionPolicy
  [Expand]DevExpress.Persistent.BaseImpl.PermissionPolicy
  [Collapse]DevExpress.Persistent.Validation
   [Expand]CodeRuleAttribute Class
   [Expand]ContextIdentifier Structure
   [Expand]ContextIdentifiers Structure
    CriteriaEvaluationBehavior Enumeration
   [Expand]CustomIsEmptyValueEventArgs Class
   [Expand]CustomNeedToValidateRuleEventArgs Class
   [Expand]CustomValidateRuleEventArgs Class
    DefaultContexts Enumeration
   [Expand]GenerateMessageTemplatesModelAttribute Class
   [Expand]IEmptyCheckable Interface
   [Expand]IModelValidationDefaultErrorMessageTemplates Interface
   [Expand]IRule Interface
   [Expand]IRuleBaseProperties Interface
   [Expand]IRuleCollectionPropertyProperties Interface
   [Expand]IRuleSource Interface
   [Expand]IRuleSupportsCollectionAggregatesProperties Interface
    ParametersMode Enumeration
   [Expand]RuleBase Class
   [Expand]RuleBaseAttribute Class
   [Expand]RuleBaseProperties Class
   [Expand]RuleCombinationOfPropertiesIsUniqueAttribute Class
   [Expand]RuleCombinationOfPropertiesIsUniqueProperties Class
   [Expand]RuleCriteriaAttribute Class
   [Expand]RuleCriteriaProperties Class
   [Expand]RuleFromBoolPropertyAttribute Class
   [Expand]RuleFromBoolPropertyProperties Class
   [Expand]RuleIsReferencedAttribute Class
   [Expand]RuleIsReferencedProperties Class
   [Expand]RuleObjectExistsAttribute Class
   [Expand]RuleObjectExistsProperties Class
   [Expand]RulePropertyValueProperties Class
   [Expand]RuleRangeAttribute Class
   [Expand]RuleRangeProperties Class
   [Expand]RuleRegularExpressionAttribute Class
   [Expand]RuleRegularExpressionProperties Class
   [Expand]RuleRequiredFieldAttribute Class
   [Expand]RuleRequiredFieldProperties Class
   [Expand]RuleSearchObjectProperties Class
   [Expand]RuleSet Class
   [Expand]RuleStringComparisonAttribute Class
   [Expand]RuleStringComparisonProperties Class
   [Expand]RuleUniqueValueAttribute Class
   [Expand]RuleUniqueValueProperties Class
   [Expand]RuleValidatedEventArgs Class
   [Expand]RuleValidationResult Class
   [Expand]RuleValueComparisonAttribute Class
   [Expand]RuleValueComparisonProperties Class
    StringComparisonType Enumeration
   [Expand]ValidationCompletedEventArgs Class
   [Expand]ValidationException Class
    ValidationOutcome Enumeration
    ValidationResultType Enumeration
    ValidationState Enumeration
   [Expand]Validator Class
    ValueComparisonType Enumeration
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
This documentation page describes implementations made in our v17.2 release cycle. To learn about functionality shipping with v18.1, navigate to our updated help file experience at docs.devexpress.com. Learn More

DevExpress.Persistent.Validation Namespace

Contains interfaces and classes used in the eXpressApp Framework's Validation Module module.

Expanded Classes

  Class Description
Public class CodeRuleAttribute Applied to a validation rule. Specifies that the rule is intended for a particular business class and does not have a corresponding validation attribute.
Public class CustomIsEmptyValueEventArgs Arguments passed to the CustomIsEmptyValue event.
Public class CustomNeedToValidateRuleEventArgs Arguments passed to the CustomNeedToValidateRule event.
Public class CustomValidateRuleEventArgs Arguments passed to the CustomValidateRule event.
Public class GenerateMessageTemplatesModelAttribute Applied to interfaces derived from IRuleBaseProperties. Specifies that message templates for string properties whose names start with "MessageTemplate" are generated automatically.
Public class RuleBase Serves as the base class for Validation Rules.
Public class RuleBaseAttribute Represents a base class for validation system attributes.
Public class RuleBaseProperties Serves as the base class for classes which represent Validation Rules' properties exported to the Application Model.
Public class RuleCombinationOfPropertiesIsUniqueAttribute Defines a validation rule that demands the target properties' values combination be unique.
Public class RuleCombinationOfPropertiesIsUniqueProperties Represent the RuleCombinationOfPropertiesIsUnique Validation Rules' properties exported to the Application Model.
Public class RuleCriteriaAttribute Defines a validation rule that demands an object of the target type satisfy a specified criterion.
Public class RuleCriteriaProperties Represent the RuleCriteria Validation Rules' properties exported to the Application Model.
Public class RuleFromBoolPropertyAttribute Defines a validation rule that demands a true value for the target public non-persistent Boolean property.
Public class RuleFromBoolPropertyProperties Represent the RuleFromBoolProperty Validation Rules' properties exported to the Application Model.
Public class RuleIsReferencedAttribute Defines a validation rule demanding that an object should be referenced in objects of a specified type.
Public class RuleIsReferencedProperties Represent the RuleIsReferenced Validation Rules' properties exported to the Application Model.
Public class RuleObjectExistsAttribute Defines a validation rule that demands a particular type object that satisfies a specified criterion, exist in the database.
Public class RuleObjectExistsProperties Represent the RuleObjectExists Validation Rules' properties exported to the Application Model.
Public class RulePropertyValueProperties Serves as the base class for classes which represent property value checking Validation Rules' properties exported to the Application Model.
Public class RuleRangeAttribute Defines a validation rule that demands the target property's value be within the specified value range (including the range's end points).
Public class RuleRangeProperties Represent the RuleRange Validation Rules' properties exported to the Application Model.
Public class RuleRegularExpressionAttribute Defines a validation rule that demands the target property match a specified pattern.
Public class RuleRegularExpressionProperties Represent the RuleRegularExpression Validation Rules' properties exported to the Application Model.
Public class RuleRequiredFieldAttribute Defines a validation rule that demands that a property have a value.
Public class RuleRequiredFieldProperties Represent the RuleRequiredField Validation Rules' properties exported to the Application Model.
Public class RuleSearchObjectProperties Serves as the base class for classes which represent object searching Validation Rules' properties exported to the Application Model.
Public class RuleSet Specifies a set of Validation Rules that can be checked on an object.
Public class RuleStringComparisonAttribute Defines a validation rule that demands the target string type property's value satisfy a specified condition.
Public class RuleStringComparisonProperties Represent the RuleStringComparison Validation Rules' properties exported to the Application Model.
Public class RuleUniqueValueAttribute Defines a validation rule that demands the target property's value be unique.
Public class RuleUniqueValueProperties Represent the RuleUniqueValue Validation Rules' properties exported to the Application Model.
Public class RuleValidatedEventArgs Arguments passed to the RuleValidated event.
Public class RuleValidationResult Represents the results of checking an object via a Validation Rule.
Public class RuleValueComparisonAttribute Defines a validation rule that demands the target property's value satisfy a specified condition.
Public class RuleValueComparisonProperties Represent the RuleValueComparison Validation Rules' properties exported to the Application Model.
Public class ValidationCompletedEventArgs Arguments passed to the ValidationCompleted event.
Public class ValidationException Occurs if the validation of a RuleSet is unsuccessful.
Public class Validator Provides access to the Validation Rules declared in an XAF application.

Expanded Interfaces

  Interface Description
Public interface IEmptyCheckable Declares the IsEmpty property to be implemented by classes to support validation via the RuleRequiredFieldAttribute.
Public interface IModelValidationDefaultErrorMessageTemplates The ErrorMessageTemplates node defines the default templates for the messages displayed when validation rules are broken.
Public interface IRule Declares members implemented by Validation Rules.
Public interface IRuleBaseProperties Declares members implemented by classes which represent Validation Rules' properties exported to the Application Model.
Public interface IRuleCollectionPropertyProperties Declares members implemented by classes which represent properties of Validation Rules that support collection validation, exported to the Application Model.
Public interface IRuleSource Declares members implemented by custom Validation Rule Sources.
Public interface IRuleSupportsCollectionAggregatesProperties Declares members implemented by classes which represent properties of Validation Rules that support collection validation using aggregate funcitons, exported to the Application Model.

Expanded Structures

  Structure Description
Public structure ContextIdentifier Identifies a Validation Context.
Public structure ContextIdentifiers Identifies Validation Contexts.

Expanded Enumerations

  Enumeration Description
Public enum CriteriaEvaluationBehavior Contains values that specify how filter criteria are evaluated within a transaction.
Public enum DefaultContexts Contains values representing the default Validation Contexts.
Public enum ParametersMode Contains values specifying how criteria string parameters used in RuleRangeAttribute and RuleValueComparisonAttribute constructors are treated.
Public enum StringComparisonType Contains values which specify operator types to be used when comparing string values via the RuleStringComparisonAttribute.
Public enum ValidationOutcome Contains values that specify the result of checking an object via a Validation Rule.
Public enum ValidationResultType Contains values that specify the validation rule result type (error, warning or information).
Public enum ValidationState Contains values that specify the possible states of a Validation Rule.
Public enum ValueComparisonType Contains values which specify operator types to be used when comparing propery values via the RuleValueComparisonAttribute.
Is this topic helpful?​​​​​​​