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