75 references to PropertyName
HtmlGenerationWebSite (3)
Components\CheckViewData - LackModel.cs (2)
21writer.WriteLine($"<div class=\"col-md-3\">PropertyName: '{ metadata.PropertyName }'</div>"); 34writer.WriteLine($"<div class=\"col-md-3\">PropertyName: '{ metadata.PropertyName }'</div>");
Components\CheckViewData.cs (1)
20writer.WriteLine($"<div class=\"col-md-3\">PropertyName: '{ metadata.PropertyName }'</div>");
Microsoft.AspNetCore.Mvc.Abstractions (4)
ModelBinding\ModelMetadata.cs (2)
146string.Equals(p.ParameterName, metadata.PropertyName, StringComparison.Ordinal) 803return $"ModelMetadata (Property: '{ContainerType!.Name}.{PropertyName}' Type: '{ModelType.Name}')";
ModelBinding\ModelPropertyCollection.cs (1)
42if (string.Equals(property.PropertyName, propertyName, StringComparison.Ordinal))
ModelBinding\ModelStateDictionary.cs (1)
284var name = metadata.DisplayName ?? metadata.PropertyName;
Microsoft.AspNetCore.Mvc.Abstractions.Test (3)
ModelBinding\ModelMetadataTest.cs (3)
289Assert.Null(metadata.PropertyName); 303Assert.Null(metadata.PropertyName); 316Assert.Equal(nameof(string.Length), metadata.PropertyName);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
697PropertyName = metadata.PropertyName!;
Microsoft.AspNetCore.Mvc.Core (21)
BindAttribute.cs (1)
73return Include.Contains(modelMetadata.PropertyName, StringComparer.Ordinal);
ModelBinding\Binders\ComplexObjectModelBinder.cs (4)
205metadata.PropertyName, 366var fieldName = property.BinderModelName ?? property.PropertyName!; 395var fieldName = property.BinderModelName ?? property.PropertyName!; 595var fieldName = propertyMetadata.BinderModelName ?? propertyMetadata.PropertyName!;
ModelBinding\Binders\ComplexTypeModelBinder.cs (4)
141var fieldName = property.BinderModelName ?? property.PropertyName; 169var fieldName = property.BinderModelName ?? property.PropertyName; 396var fieldName = propertyMetadata.BinderModelName ?? propertyMetadata.PropertyName; 494metadata.PropertyName,
ModelBinding\ModelBinderFactory.cs (1)
313return $"{_token} (Property: '{_metadata.ContainerType!.Name}.{_metadata.PropertyName}' " +
ModelBinding\ModelBindingHelper.cs (2)
354return (metadata) => string.Equals(metadata.PropertyName, propertyName, StringComparison.Ordinal); 418modelState.ClearValidationState((property.BinderModelName ?? property.PropertyName)!);
ModelBinding\ParameterBinder.Log.cs (5)
34modelMetadata.PropertyName, 80modelMetadata.PropertyName, 126modelMetadata.PropertyName, 176modelMetadata.PropertyName, 225modelMetadata.PropertyName);
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (1)
108var propertyName = property.ValidationModelName ?? property.BinderModelName ?? property.PropertyName;
MvcCoreLoggerExtensions.cs (3)
135modelMetadata.PropertyName, 189modelMetadata.PropertyName, 228modelMetadata.PropertyName,
Microsoft.AspNetCore.Mvc.Core.Test (25)
ControllerBaseTest.cs (6)
2722string.Equals(m.PropertyName, "Include1", StringComparison.OrdinalIgnoreCase) || 2723string.Equals(m.PropertyName, "Include2", StringComparison.OrdinalIgnoreCase); 2755string.Equals(m.PropertyName, "Include1", StringComparison.OrdinalIgnoreCase) || 2756string.Equals(m.PropertyName, "Include2", StringComparison.OrdinalIgnoreCase); 2904string.Equals(m.PropertyName, "Include1", StringComparison.OrdinalIgnoreCase) || 2905string.Equals(m.PropertyName, "Include2", StringComparison.OrdinalIgnoreCase);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (3)
1011ComplexObjectModelBinder.SetProperty(bindingContext, propertyMetadata.PropertyName, propertyMetadata, result); 1368!string.Equals("Excluded1", m.PropertyName, StringComparison.OrdinalIgnoreCase) && 1369!string.Equals("Excluded2", m.PropertyName, StringComparison.OrdinalIgnoreCase);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (3)
1173binder.SetPropertyPublic(bindingContext, propertyMetadata.PropertyName, propertyMetadata, result); 1543!string.Equals("Excluded1", m.PropertyName, StringComparison.OrdinalIgnoreCase) && 1544!string.Equals("Excluded2", m.PropertyName, StringComparison.OrdinalIgnoreCase);
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (5)
74Assert.Equal("Property1", propertyMetadata.PropertyName); 80Assert.Equal("Property2", propertyMetadata.PropertyName); 97Assert.Single(metadata, m => m.PropertyName == "Property1"); 98Assert.Single(metadata, m => m.PropertyName == "Property2"); 112Assert.Single(metadata, m => m.PropertyName == "Property1");
ModelBinding\Metadata\DefaultModelMetadataTest.cs (4)
91Assert.Null(metadata.PropertyName); 110Assert.Equal("Message", metadata.PropertyName); 568Assert.Equal(expectedNames.ToArray(), properties.Select(p => p.PropertyName).ToArray()); 680Assert.Equal(expectedNames.ToArray(), properties.Select(p => p.PropertyName).ToArray());
ModelBinding\ModelBindingHelperTest.cs (4)
184string.Equals(m.PropertyName, "IncludedProperty", StringComparison.OrdinalIgnoreCase) || 185string.Equals(m.PropertyName, "MyProperty", StringComparison.OrdinalIgnoreCase); 514string.Equals(m.PropertyName, "IncludedProperty", StringComparison.OrdinalIgnoreCase) || 515string.Equals(m.PropertyName, "MyProperty", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
39matched.Add(property.PropertyName);
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
DefaultDisplayTemplates.cs (1)
227htmlFieldName: propertyMetadata.PropertyName,
DefaultEditorTemplates.cs (3)
269htmlFieldName: propertyMetadata.PropertyName, 277var label = htmlHelper.Label(propertyMetadata.PropertyName, labelText: null, htmlAttributes: null); 296propertyMetadata.PropertyName,
DefaultHtmlGenerator.cs (1)
372modelExplorer.Metadata.PropertyName;
HtmlHelper.cs (1)
776var resolvedDisplayName = modelExplorer.Metadata.DisplayName ?? modelExplorer.Metadata.PropertyName;
ModelExplorer.cs (2)
193propertyMetadata.PropertyName, 241if (string.Equals(name, property.Metadata.PropertyName, StringComparison.Ordinal))
ModelStateDictionaryExtensions.cs (1)
128var childKey = property.BinderModelName ?? property.PropertyName;
RemoteAttributeBase.cs (1)
158var additionalFields = FormatAdditionalFieldsForClientValidation(context.ModelMetadata.PropertyName!);
ValidationHelpers.cs (1)
99var propertyModelStateEntry = modelStateEntry.GetModelStateForProperty(propertyMetadata.PropertyName);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
ModelExplorerTest.cs (3)
51var baseProperty = Assert.Single(properties, p => p.Metadata.PropertyName == "Base1"); 56var derivedProperty = Assert.Single(properties, p => p.Metadata.PropertyName == "Derived1"); 75var baseProperty = Assert.Single(properties, p => p.Metadata.PropertyName == "Base1");
Rendering\DefaultTemplatesUtilities.cs (1)
342metadata.PropertyName ?? "(null)",
Microsoft.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (1)
306if (parameterDescription.ModelMetadata is { PropertyName: { }, ContainerType: { }, HasValidators: true, ValidatorMetadata: { } validations })
Services\Schemas\OpenApiSchemaService.cs (1)
132&& parameterDescription.ModelMetadata.PropertyName is null