Class DomainBuilderRulesExtensions
Extension methods for adding rules to the domain builder.
public static class DomainBuilderRulesExtensions
- Inheritance
-
DomainBuilderRulesExtensions
- Inherited Members
Methods
Rules<T>(DomainBuilder, Action<RuleSetBuilder<T>>)
Adds a rule set for the specified entity type.
public static DomainBuilder Rules<T>(this DomainBuilder builder, Action<RuleSetBuilder<T>> configure) where T : class
Parameters
builderDomainBuilderThe domain builder.
configureAction<RuleSetBuilder<T>>The rule configuration action.
Returns
- DomainBuilder
The domain builder for chaining.
Type Parameters
TThe entity type.
Rules<T>(DomainBuilder, string, Action<RuleSetBuilder<T>>)
Adds a named rule set for the specified entity type.
public static DomainBuilder Rules<T>(this DomainBuilder builder, string name, Action<RuleSetBuilder<T>> configure) where T : class
Parameters
builderDomainBuilderThe domain builder.
namestringThe name of the rule set (e.g., "Create", "Update").
configureAction<RuleSetBuilder<T>>The rule configuration action.
Returns
- DomainBuilder
The domain builder for chaining.
Type Parameters
TThe entity type.