1 write to _editContext
Microsoft.AspNetCore.Components.Forms (1)
EditContextDataAnnotationsExtensions.cs (1)
72_editContext = editContext ?? throw new ArgumentNullException(nameof(editContext));
12 references to _editContext
Microsoft.AspNetCore.Components.Forms (12)
EditContextDataAnnotationsExtensions.cs (12)
74_messages = new ValidationMessageStore(_editContext); 76_editContext.OnFieldChanged += OnFieldChanged; 77_editContext.OnValidationRequested += OnValidationRequested; 107_editContext.NotifyValidationStateChanged(); 114var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 116Validator.TryValidateObject(_editContext.Model, validationContext, validationResults, true); 131_messages.Add(_editContext.Field(memberName), validationResult.ErrorMessage!); 136_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!); 140_editContext.NotifyValidationStateChanged(); 146_editContext.OnFieldChanged -= OnFieldChanged; 147_editContext.OnValidationRequested -= OnValidationRequested; 148_editContext.NotifyValidationStateChanged();