Can You Ignore a Specific Business Object Property When Using the Csla Validator Tag #2013
Replies: 4 comments 1 reply
-
I don't think the aspnetcore validation system has a way to ignore properties. The |
Beta Was this translation helpful? Give feedback.
-
Yeah, maybe that would work. If I could customize the behavior and normally get the exception but change it in certain cases that would work. Or maybe there is a to capture the exception and eat it? I really wish that DevExpress had not made their component require me to Cast my business object to IEnumerable<> and I don't think this would be a problem. |
Beta Was this translation helpful? Give feedback.
-
Has anyone found a resolution to this exception? I am encountering it with Blazor/Telerik controls. |
Beta Was this translation helpful? Give feedback.
-
Added to backlog: #2462 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the DevExpress TagBox Blazor (multiselect dropdown) control and it requires you to bind to an
IEnumerable<CustomType>
property which works for me until a validation occurs (using the<CslaValidator />
tag)in which case the browser throws this exception ...
System.ArgumentException: Model does not implement required interface ICheckRules
at Csla.Blazor.EditContextCslaExtensions.ValidateField(EditContext editContext, ValidationMessageStore messages, FieldIdentifier& fieldIdentifier)
I really just want to tell CSLA not to bother validating that one particular property on my business object. Is there a way to do this?
Thanks
Mark
Beta Was this translation helpful? Give feedback.
All reactions