1 write to FieldName
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
57
FieldName
= fieldName ?? throw new ArgumentNullException(nameof(fieldName));
24 references to FieldName
BasicTestApp (1)
FormsTest\CustomFieldCssClassProvider.cs (1)
18
var propertyInfo = fieldIdentifier.Model.GetType().GetProperty(fieldIdentifier.
FieldName
);
Microsoft.AspNetCore.Components.Forms (4)
EditContextDataAnnotationsExtensions.cs (1)
157
var cacheKey = (ModelType: fieldIdentifier.Model.GetType(), fieldIdentifier.
FieldName
);
FieldIdentifier.cs (3)
75
var fieldHash = StringComparer.Ordinal.GetHashCode(
FieldName
);
92
string.Equals(otherIdentifier.
FieldName
,
FieldName
, StringComparison.Ordinal);
Microsoft.AspNetCore.Components.Forms.Tests (16)
EditContextTest.cs (1)
33
Assert.Equal("testFieldName", fieldIdentifier.
FieldName
);
FieldIdentifierTest.cs (15)
38
Assert.Equal(string.Empty, fieldIdentifier.
FieldName
);
50
Assert.Equal("someField", fieldIdentifier.
FieldName
);
127
Assert.Equal("field", fieldIdentifierLower.
FieldName
);
128
Assert.Equal("Field", fieldIdentifierPascal.
FieldName
);
139
Assert.Equal(nameof(model.StringProperty), fieldIdentifier.
FieldName
);
175
Assert.Equal(nameof(model.StringField), fieldIdentifier.
FieldName
);
187
Assert.Equal(nameof(model.IntProperty), fieldIdentifier.
FieldName
);
195
Assert.Equal(nameof(StringPropertyOnThisClass), fieldIdentifier.
FieldName
);
204
Assert.Equal(nameof(TestModel.StringField), fieldIdentifier.
FieldName
);
213
Assert.Equal(nameof(TestModel.StringField), fieldIdentifier.
FieldName
);
222
Assert.Equal(nameof(TestModel.StringField), fieldIdentifier.
FieldName
);
230
Assert.Equal(nameof(model.Field), fieldIdentifier.
FieldName
);
243
Assert.Equal(nameof(Model2.Property), fieldIdentifier.
FieldName
);
255
Assert.Equal(nameof(Model3.Value), fieldIdentifier.
FieldName
);
263
Assert.Equal(nameof(@ÖvrigAnställning.Ort), fieldIdentifier.
FieldName
);
Microsoft.AspNetCore.Components.Web (3)
Forms\InputDate.cs (1)
120
validationErrorMessage = string.Format(CultureInfo.InvariantCulture, _parsingErrorMessage, DisplayName ?? FieldIdentifier.
FieldName
);
Forms\InputExtensions.cs (1)
43
validationErrorMessage = $"The {input.DisplayName ?? input.FieldIdentifier.
FieldName
} field is not valid.";
Forms\InputNumber.cs (1)
77
validationErrorMessage = string.Format(CultureInfo.InvariantCulture, ParsingErrorMessage, DisplayName ?? FieldIdentifier.
FieldName
);