RuleCombinationOfPropertiesIsUniqueAttribute.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.1.dll
NuGet Package: DevExpress.Persistent.Base
Declaration
Property Value
Type | Description |
---|---|
CriteriaEvaluationBehavior | A CriteriaEvaluationBehavior enumeration value that specifies how the required objects are searched. |
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 RuleCombinationOfPropertiesIsUniqueAttribute 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).