1 write to _editContext
Microsoft.AspNetCore.Components.Forms (1)
EditContextDataAnnotationsExtensions.cs (1)
70_editContext = editContext ?? throw new ArgumentNullException(nameof(editContext));
12 references to _editContext
Microsoft.AspNetCore.Components.Forms (12)
EditContextDataAnnotationsExtensions.cs (12)
72_messages = new ValidationMessageStore(_editContext); 74_editContext.OnFieldChanged += OnFieldChanged; 75_editContext.OnValidationRequested += OnValidationRequested; 105_editContext.NotifyValidationStateChanged(); 112var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 114Validator.TryValidateObject(_editContext.Model, validationContext, validationResults, true); 129_messages.Add(_editContext.Field(memberName), validationResult.ErrorMessage!); 134_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!); 138_editContext.NotifyValidationStateChanged(); 144_editContext.OnFieldChanged -= OnFieldChanged; 145_editContext.OnValidationRequested -= OnValidationRequested; 146_editContext.NotifyValidationStateChanged();