Class RequiredNoDefaultIDValidationAttribute
Indicates this is a required property and must have a value that is not the default value of that property type.
For instance if an integer it can not be 0, or if a Guid it can not be Guid.Empty
Inheritance
RequiredNoDefaultIDValidationAttribute
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class RequiredNoDefaultIDValidationAttribute : ValidationAttribute
Constructors
RequiredNoDefaultIDValidationAttribute()
Declaration
public RequiredNoDefaultIDValidationAttribute()
Properties
RequiresValidationContext
Declaration
public override sealed bool RequiresValidationContext { get; }
Property Value
Overrides
Methods
IsValid(object, ValidationContext)
Declaration
protected override sealed ValidationResult IsValid(object value, ValidationContext validationContext)
Parameters
Returns
Overrides
Extension Methods