1 write to Model
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
33Model = model ?? throw new ArgumentNullException(nameof(model));
16 references to Model
Microsoft.AspNetCore.Components.Forms (13)
EditContext.cs (3)
65/// on this <see cref="EditContext"/>'s <see cref="Model"/>. 68/// <returns>A <see cref="FieldIdentifier"/> corresponding to a specified field name on this <see cref="EditContext"/>'s <see cref="Model"/>.</returns> 70=> new FieldIdentifier(Model, fieldName);
EditContextDataAnnotationsExtensions.cs (10)
65_validatorTypeInfo = _validationOptions != null && _validationOptions.TryGetValidatableTypeInfo(_editContext.Model.GetType(), out var typeInfo) 149var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 155await Validator.TryValidateObjectAsync(_editContext.Model, validationContext, validationResults, validateAllProperties: true, cancellationToken); 163var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 169Validator.TryValidateObject(_editContext.Model, validationContext, validationResults, validateAllProperties: true); 195_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!); 213await validatableInfo.ValidateAsync(_editContext.Model, validateContext, cancellationToken); 236validatableInfo.Validate(_editContext.Model, validateContext); 250var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 346new 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);