Base:
property
ModelName
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.ModelName
56 writes to ModelName
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\DefaultModelBindingContext.cs (2)
223
ModelName
= binderModelName ?? modelName,
266
ModelName
= modelName;
Microsoft.AspNetCore.Mvc.Core.Test (54)
ModelBinding\Binders\ArrayModelBinderTest.cs (4)
64
bindingContext.
ModelName
= "modelName";
98
bindingContext.
ModelName
= "modelName";
145
bindingContext.
ModelName
= ModelNames.CreatePropertyModelName(prefix, "ArrayProperty");
223
bindingContext.
ModelName
= "someName";
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
80
ModelName
= "someName",
ModelBinding\Binders\BodyModelBinderTests.cs (1)
698
ModelName
= "someName",
ModelBinding\Binders\ByteArrayModelBinderTests.cs (1)
109
ModelName
= "foo",
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (1)
36
ModelName
= "someName",
ModelBinding\Binders\CollectionModelBinderTest.cs (6)
250
bindingContext.
ModelName
= "modelName";
284
bindingContext.
ModelName
= "modelName";
325
bindingContext.
ModelName
= "modelName";
364
bindingContext.
ModelName
= "modelName";
401
bindingContext.
ModelName
= ModelNames.CreatePropertyModelName(prefix, "ListProperty");
490
bindingContext.
ModelName
= "someName";
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (6)
103
bindingContext.
ModelName
= "SimpleContainer.Simple";
291
ModelName
= string.Empty,
343
ModelName
= string.Empty,
387
ModelName
= string.Empty,
1068
bindingContext.
ModelName
= "foo";
1116
ModelName
= "theModel",
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (8)
102
bindingContext.
ModelName
= "SimpleContainer.Simple";
303
ModelName
= string.Empty,
351
ModelName
= string.Empty,
403
ModelName
= string.Empty,
447
ModelName
= string.Empty,
575
ModelName
= nameof(Location.Point),
1230
bindingContext.
ModelName
= "foo";
1280
ModelName
= "theModel",
ModelBinding\Binders\DateTimeModelBinderTest.cs (1)
213
ModelName
= "theModelName",
ModelBinding\Binders\DictionaryModelBinderTest.cs (12)
138
bindingContext.
ModelName
= modelName;
171
bindingContext.
ModelName
= modelName;
209
bindingContext.
ModelName
= "prefix";
246
bindingContext.
ModelName
= "prefix";
296
bindingContext.
ModelName
= "prefix";
333
bindingContext.
ModelName
= "prefix";
392
bindingContext.
ModelName
= modelName;
435
bindingContext.
ModelName
= "modelName";
470
bindingContext.
ModelName
= "modelName";
519
bindingContext.
ModelName
= "modelName";
563
bindingContext.
ModelName
= ModelNames.CreatePropertyModelName(prefix, "ListProperty");
684
bindingContext.
ModelName
= "someName";
ModelBinding\Binders\EnumTypeModelBinderTest.cs (1)
244
ModelName
= modelName,
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (1)
374
ModelName
= "theModelName",
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
76
ModelName
= "file",
ModelBinding\Binders\FormFileModelBinderTest.cs (2)
344
bindingContext.
ModelName
= "ModelName";
464
ModelName
= "file",
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
357
ModelName
= $"somePrefix.{headerName}",
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (3)
155
bindingContext.
ModelName
= "modelName";
183
bindingContext.
ModelName
= ModelNames.CreatePropertyModelName(prefix, "KeyValuePairProperty");
221
ModelName
= "someName",
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
52
ModelName
= "modelName",
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
491
ModelName
= "theModelName",
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
496
ModelName
= "theModelName",
ModelBinding\DefaultModelBindingContextTest.cs (1)
24
ModelName
= "theName",
10 references to ModelName
Microsoft.AspNetCore.Mvc.Core.Test (10)
ModelBinding\Binders\BodyModelBinderTests.cs (2)
634
bindingContext.BinderModelName = bindingContext.
ModelName
;
652
$"To use model binding, remove the [FromBody] attribute from the property or parameter named '{bindingContext.
ModelName
}' with model type '{bindingContext.ModelType}'.", write.State.ToString()),
ModelBinding\Binders\DictionaryModelBinderTest.cs (5)
211
bindingContext.FieldName = bindingContext.
ModelName
;
248
bindingContext.FieldName = bindingContext.
ModelName
;
298
bindingContext.FieldName = bindingContext.
ModelName
;
335
bindingContext.FieldName = bindingContext.
ModelName
;
395
bindingContext.FieldName = bindingContext.
ModelName
;
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
31
Assert.Equal("someName", bindingContext.
ModelName
);
55
Assert.Equal("someName", bindingContext.
ModelName
);
ModelBinding\DefaultModelBindingContextTest.cs (1)
57
Assert.Equal("modelprefix.fieldName", bindingContext.
ModelName
);