Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Specifying name of non-existing RuleSet

$
0
0
Hi!

I am trying to use RuleSets for different operations on my domain objects. E.g. one RuleSet for the "Insert"-operation, another for the "Update"-operation plus some common Rules without RuleSet which will be called via the "default" RuleSet.

When specifying a RuleSet-Name that does not exist while validating like
MyValidator.Validate(entity, ruleSet: "default,somefunkyrulesetname");
the validation still works fine and I never get any feedback like an exception.
Is this the default behavior or am I missing something?
Or is there another way to guarantee that my RuleSets are actually run (not to mention any typos I created in my code).

Thanks for any hints and suggestions!

Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>