1 write to Model
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\EditFormTest.cs (1)
36
Model
= new TestModel()
10 references to Model
Microsoft.AspNetCore.Components.Web (8)
Forms\EditForm.cs (8)
35
/// also supply <see cref="
Model
"/>, since the model value will be taken
101
if (_hasSetEditContextExplicitly &&
Model
!= null)
103
throw new InvalidOperationException($"{nameof(EditForm)} requires a {nameof(
Model
)} " +
106
else if (!_hasSetEditContextExplicitly &&
Model
== null)
108
throw new InvalidOperationException($"{nameof(EditForm)} requires either a {nameof(
Model
)} " +
124
if (
Model
!= null &&
Model
!= _editContext?.Model)
126
_editContext = new EditContext(
Model
!);
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\EditFormTest.cs (2)
44
Assert.StartsWith($"{nameof(EditForm)} requires a {nameof(EditForm.
Model
)} parameter, or an {nameof(EditContext)} parameter, but not both.", ex.Message);
58
Assert.StartsWith($"{nameof(EditForm)} requires either a {nameof(EditForm.
Model
)} parameter, or an {nameof(EditContext)} parameter, please provide one of these.", ex.Message);