1 write to Model
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
33
Model
= 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)
117
var validationContext = new ValidationContext(_editContext.
Model
, _serviceProvider, items: null);
119
Validator.TryValidateObject(_editContext.
Model
, validationContext, validationResults, true);
139
_messages.Add(new FieldIdentifier(_editContext.
Model
, fieldName: string.Empty), validationResult.ErrorMessage!);
148
var validationContext = new ValidationContext(_editContext.
Model
, _serviceProvider, items: null);
164
await validatableInfo.ValidateAsync(_editContext.
Model
, validateContext, cancellationToken);
247
new FieldIdentifier(context.Container ?? _editContext.
Model
, context.Name);
Microsoft.AspNetCore.Components.Web (3)
Forms\EditForm.cs (2)
36
/// from the <see cref="EditContext.
Model
"/> property.
124
if (Model != null && Model != _editContext?.
Model
)
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
67
fieldIdentifier = new FieldIdentifier(owner ?? _editContext.
Model
, key);