Child Object Validation Rules and Blazor #2087
-
I have BO which has child object which is also a subclass of BusinessBase.The parent object has two properties which have simple DataAnnotation Required Rule and the Child Object also has one property which also has simple data annotation rule.When the properties are bound to TextInput component as follows |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I found something on how validate complex types like scenario above using ObjectGraphDataAnnotationsValidator and the ValidateComplexType attribute from the Microsoft.AspNetCore.Components.DataAnnotations.Validations nuget for the EditForm component,I am using the ViewModel looking for help on how I can achieve this with ViewModel in Csla.Blazor |
Beta Was this translation helpful? Give feedback.
I found something on how validate complex types like scenario above using ObjectGraphDataAnnotationsValidator and the ValidateComplexType attribute from the Microsoft.AspNetCore.Components.DataAnnotations.Validations nuget for the EditForm component,I am using the ViewModel looking for help on how I can achieve this with ViewModel in Csla.Blazor