14 references to SetModelValue
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\Binders\ByteArrayModelBinder.cs (1)
44
bindingContext.ModelState.
SetModelValue
(bindingContext.ModelName, valueProviderResult);
ModelBinding\Binders\CollectionModelBinder.cs (1)
181
bindingContext.ModelState.
SetModelValue
(
ModelBinding\Binders\DateTimeModelBinder.cs (1)
51
modelState.
SetModelValue
(modelName, valueProviderResult);
ModelBinding\Binders\DecimalModelBinder.cs (1)
53
modelState.
SetModelValue
(modelName, valueProviderResult);
ModelBinding\Binders\DoubleModelBinder.cs (1)
53
modelState.
SetModelValue
(modelName, valueProviderResult);
ModelBinding\Binders\FloatModelBinder.cs (1)
53
modelState.
SetModelValue
(modelName, valueProviderResult);
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
51
bindingContext.ModelState.
SetModelValue
(bindingContext.ModelName, valueProviderResult);
ModelBinding\Binders\TryParseModelBinder.cs (1)
59
bindingContext.ModelState.
SetModelValue
(bindingContext.ModelName, valueProviderResult);
Microsoft.AspNetCore.Mvc.Core.Test (6)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (6)
1370
actionContext.ModelState.
SetModelValue
("Property1", new ValueProviderResult("value1"));
1371
actionContext.ModelState.
SetModelValue
("Property2", new ValueProviderResult("value2"));
1400
modelState.
SetModelValue
("Property1", new ValueProviderResult("value1"));
1401
modelState.
SetModelValue
("Property2", new ValueProviderResult("value2"));
1430
modelState.
SetModelValue
("Property1", new ValueProviderResult("value1"));
1431
modelState.
SetModelValue
("Property2", new ValueProviderResult("value2"));