1 write to Model
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
33Model = model ?? throw new ArgumentNullException(nameof(model));
13 references to Model
Microsoft.AspNetCore.Components.Forms (10)
EditContext.cs (3)
80/// on this <see cref="EditContext"/>'s <see cref="Model"/>. 83/// <returns>A <see cref="FieldIdentifier"/> corresponding to a specified field name on this <see cref="EditContext"/>'s <see cref="Model"/>.</returns> 85=> new FieldIdentifier(Model, fieldName);
EditContextDataAnnotationsExtensions.cs (7)
65_validatorTypeInfo = _validationOptions != null && _validationOptions.TryGetValidatableTypeInfo(_editContext.Model.GetType(), out var typeInfo) 117var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 119Validator.TryValidateObject(_editContext.Model, validationContext, validationResults, true); 139_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!); 148var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 164await validatableInfo.ValidateAsync(_editContext.Model, validateContext, cancellationToken); 247new FieldIdentifier(context.Container ?? _editContext.Model, context.Name);
Microsoft.AspNetCore.Components.Web (3)
Forms\EditForm.cs (2)
36/// from the <see cref="EditContext.Model"/> property. 124if (Model != null && Model != _editContext?.Model)
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
67fieldIdentifier = new FieldIdentifier(owner ?? _editContext.Model, key);