27 references to CreatePropertyModelName
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
683
return ModelNames.
CreatePropertyModelName
(containerName, propertyName);
Microsoft.AspNetCore.Mvc.Core (16)
ModelBinding\Binders\CollectionModelBinder.cs (1)
306
var indexPropertyName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, "index");
ModelBinding\Binders\ComplexObjectModelBinder.cs (6)
242
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
304
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
367
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
396
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
596
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
632
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
ModelBinding\Binders\ComplexTypeModelBinder.cs (3)
142
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
170
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
397
var modelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, fieldName);
ModelBinding\Binders\DictionaryModelBinder.cs (1)
196
bindingContext.ModelName = ModelNames.
CreatePropertyModelName
(prefix, kvp.Key);
ModelBinding\Binders\FormFileModelBinder.cs (1)
75
modelName = ModelNames.
CreatePropertyModelName
(bindingContext.OriginalModelName, modelName);
ModelBinding\Binders\KeyValuePairModelBinder.cs (2)
45
var keyModelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, "Key");
48
var valueModelName = ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, "Value");
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (1)
88
var key = ModelNames.
CreatePropertyModelName
(_key, parameterName);
ModelBinding\Validation\ValidationVisitor.cs (1)
233
var key = ModelNames.
CreatePropertyModelName
(Key, result.MemberName);
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
145
bindingContext.ModelName = ModelNames.
CreatePropertyModelName
(prefix, "ArrayProperty");
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
401
bindingContext.ModelName = ModelNames.
CreatePropertyModelName
(prefix, "ListProperty");
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
563
bindingContext.ModelName = ModelNames.
CreatePropertyModelName
(prefix, "ListProperty");
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (1)
183
bindingContext.ModelName = ModelNames.
CreatePropertyModelName
(prefix, "KeyValuePairProperty");
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
ActionParametersIntegrationTest.cs (2)
861
var key = ModelNames.
CreatePropertyModelName
(parameter.Name, nameof(ModelWithIValidatableObject.FirstName));
886
entry = modelState[ModelNames.
CreatePropertyModelName
(parameter.Name, nameof(ModelWithIValidatableObject.FirstName))];
BinderTypeBasedModelBinderIntegrationTest.cs (2)
332
ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, "Street"),
357
ModelNames.
CreatePropertyModelName
(bindingContext.ModelName, "Street"),
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonInputFormatter.cs (2)
299
path = ModelNames.
CreatePropertyModelName
(path, member);
303
var key = ModelNames.
CreatePropertyModelName
(context.ModelName, path);