Class RequiredPropertyRule<TEntityView>
- Namespace
- GroupeIsa.Neos.Application.Rules.RequiredPropertyRules
- Assembly
- GroupeIsa.Neos.Application.Abstractions.dll
Represents a required property rule.
public abstract class RequiredPropertyRule<TEntityView> : ValidationRule<TEntityView>, IValidationRule<TEntityView>, IValidationRule where TEntityView : IEntityView
Type Parameters
TEntityView
The entity view type.
- Inheritance
-
AsyncValidationRule<TEntityView>ValidationRule<TEntityView>RequiredPropertyRule<TEntityView>
- Implements
-
IValidationRule<TEntityView>
- Inherited Members
Properties
PropertyName
Gets the property name that is required or not.
public abstract string PropertyName { get; }
Property Value
Methods
Execute()
Executes the validation rule.
public override IValidationRuleResult Execute()
Returns
- IValidationRuleResult
The result of the validation result.
IsPropertyValueNull()
Determines if the property value is null.
public abstract bool IsPropertyValueNull()
Returns
- bool
A value indicating whether the value is null or not.
IsRequired()
Determines if the property should be required.
public abstract bool IsRequired()
Returns
- bool
Result.