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