.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RuleObjectExistsAttribute Constructors

Defines a validation rule that demands a particular type object that satisfies a specified criterion, exist in the database.
Name Parameters Description
RuleObjectExistsAttribute(DefaultContexts, String) targetContexts, criteria Initializes a new instance of the RuleObjectExistsAttribute class.
RuleObjectExistsAttribute(String) criteria Initializes a new instance of the RuleObjectExistsAttribute class.
RuleObjectExistsAttribute(String, DefaultContexts, String) id, targetContexts, criteria Initializes a new instance of the RuleObjectExistsAttribute class.
RuleObjectExistsAttribute(String, DefaultContexts, String, String) id, targetContexts, criteria, messageTemplate Initializes a new instance of the RuleObjectExistsAttribute class.
RuleObjectExistsAttribute(String, String, String) id, targetContextIDs, criteria Initializes a new instance of the RuleObjectExistsAttribute class.
RuleObjectExistsAttribute(String, String, String, String) id, targetContextIDs, criteria, messageTemplate Initializes a new instance of the RuleObjectExistsAttribute class.
See Also