6 references to DataAnnotationsValidator
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\RazorComponentsServiceOptions.cs (1)
28
/// forms using <see cref="Microsoft.AspNetCore.Components.Forms.
DataAnnotationsValidator
"/> emit
Microsoft.AspNetCore.Components.Forms (4)
DataAnnotationsValidator.cs (4)
31
throw new InvalidOperationException($"{nameof(
DataAnnotationsValidator
)} requires a cascading " +
32
$"parameter of type {nameof(EditContext)}. For example, you can use {nameof(
DataAnnotationsValidator
)} " +
41
CurrentEditContext.Properties[typeof(
DataAnnotationsValidator
)] = true;
70
CurrentEditContext?.Properties.Remove(typeof(
DataAnnotationsValidator
));
Microsoft.AspNetCore.Components.Web (1)
Forms\ClientValidation\ClientValidationData.cs (1)
36
|| !CurrentEditContext.Properties.TryGetValue(typeof(
DataAnnotationsValidator
), out _))