Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RuleIsReferencedAttribute.CriteriaEvaluationBehavior Property

Specifies whether to look for objects that are currently retrieved from the database, in addition to the objects in the database itself.

Namespace: DevExpress.Persistent.Validation

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

#Declaration

public CriteriaEvaluationBehavior CriteriaEvaluationBehavior { get; set; }

#Property Value

Type Description
CriteriaEvaluationBehavior

A CriteriaEvaluationBehavior enumeration value representing the behavior for searching for the required objects.

Available values:

Name Description
BeforeTransaction

Only objects in the database are considered.

InTransaction

Objects in the database and those that are currently retrieved from it are considered.

#Remarks

The following values are available:

  • BeforeTransaction

    Only objects in the database will be considered.

  • InTransaction

    Objects in the database and those that are currently retrieved from it will be considered.

By default, this property is set to InTransaction.

Note

When defining the RuleIsReferencedAttribute in code, the value for the CriteriaEvaluationBehavior property is passed as a named parameter. This means that you do not have to specify it. However, when specifying the parameter, use the following format: CriteriaEvaluationBehavior = CriteriaEvaluationBehavior.InTransaction (CriteriaEvaluationBehavior := CriteriaEvaluationBehavior.InTransaction, in Visual Basic).

See Also