1 write to Model
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
33
Model
= 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)
149
var validationContext = new ValidationContext(_editContext.
Model
, _serviceProvider, items: null);
155
await Validator.TryValidateObjectAsync(_editContext.
Model
, validationContext, validationResults, validateAllProperties: true, cancellationToken);
163
var validationContext = new ValidationContext(_editContext.
Model
, _serviceProvider, items: null);
169
Validator.TryValidateObject(_editContext.
Model
, validationContext, validationResults, validateAllProperties: true);
195
_messages.Add(new FieldIdentifier(_editContext.
Model
, fieldName: string.Empty), validationResult.ErrorMessage!);
213
await validatableInfo.ValidateAsync(_editContext.
Model
, validateContext, cancellationToken);
236
validatableInfo.Validate(_editContext.
Model
, validateContext);
250
var validationContext = new ValidationContext(_editContext.
Model
, _serviceProvider, items: null);
346
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);