1 write to Model
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
31Model = model ?? throw new ArgumentNullException(nameof(model));
11 references to Model
Microsoft.AspNetCore.Components.Forms (6)
EditContext.cs (3)
52/// on this <see cref="EditContext"/>'s <see cref="Model"/>. 55/// <returns>A <see cref="FieldIdentifier"/> corresponding to a specified field name on this <see cref="EditContext"/>'s <see cref="Model"/>.</returns> 57=> new FieldIdentifier(Model, fieldName);
EditContextDataAnnotationsExtensions.cs (3)
112var validationContext = new ValidationContext(_editContext.Model, _serviceProvider, items: null); 114Validator.TryValidateObject(_editContext.Model, validationContext, validationResults, true); 134_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!);
Microsoft.AspNetCore.Components.Forms.Tests (1)
EditContextTest.cs (1)
20Assert.Same(model, editContext.Model);
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);
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\EditFormTest.cs (1)
77Assert.Same(model, returnedEditContext.Model);