32 references to ModelNames
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
683
return
ModelNames
.CreatePropertyModelName(containerName, propertyName);
Microsoft.AspNetCore.Mvc.Core (21)
ModelBinding\Binders\CollectionModelBinder.cs (2)
306
var indexPropertyName =
ModelNames
.CreatePropertyModelName(bindingContext.ModelName, "index");
348
var fullChildName =
ModelNames
.CreateIndexModelName(bindingContext.ModelName, indexName);
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 (2)
196
bindingContext.ModelName =
ModelNames
.CreatePropertyModelName(prefix, kvp.Key);
200
bindingContext.ModelName =
ModelNames
.CreateIndexModelName(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\DefaultCollectionValidationStrategy.cs (1)
122
var key =
ModelNames
.CreateIndexModelName(_key, _index);
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (2)
88
var key =
ModelNames
.CreatePropertyModelName(_key, parameterName);
109
var key =
ModelNames
.CreatePropertyModelName(_key, propertyName);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategy.cs (1)
97
var key =
ModelNames
.CreateIndexModelName(_key, _keyEnumerator.Current);
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);