Table of Contents

Class ValidationRuleSetAttribute

Namespace
Magicalizer.Api
Assembly
Magicalizer.dll

FluentValidation rule sets that FluentValidationFilterAttribute validates an action parameter with. Without the attribute, only the default rules are validated.

[AttributeUsage(AttributeTargets.Parameter)]
public class ValidationRuleSetAttribute : Attribute
Inheritance
ValidationRuleSetAttribute
Inherited Members

Constructors

ValidationRuleSetAttribute(string)

Creates an attribute.

public ValidationRuleSetAttribute(string ruleSets)

Parameters

ruleSets string

Comma-separated names of the rule sets to validate (e.g. "Default,Create"), see RuleSetName for the standard ones.

Properties

RuleSets

Names of the rule sets to validate.

public string[] RuleSets { get; }

Property Value

string[]