Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Add lambda rule handler does not use the given ruleSet and adds the rule to the default rule set #3803

Closed
StefanOssendorf opened this issue Apr 16, 2024 · 0 comments · Fixed by #3892
Assignees
Labels

Comments

@StefanOssendorf
Copy link
Contributor

public static void AddRule<T>(this BusinessRules businessRules, string ruleSet, Csla.Core.IPropertyInfo primaryProperty, Func<T, bool> ruleHandler, string message) where T : BusinessBase
{
AddRule(businessRules, primaryProperty, ruleHandler, message, RuleSeverity.Error);
}

The string ruleSet parameter is not passed to the next method call which results in all rules are added into the default rule set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

3 participants