18 references to ModelBindingHelper
Microsoft.AspNetCore.Mvc.Core (18)
ControllerBase.cs (7)
2582
return
ModelBindingHelper
.TryUpdateModelAsync(
2619
return await
ModelBindingHelper
.TryUpdateModelAsync(
2656
return await
ModelBindingHelper
.TryUpdateModelAsync(
2691
return
ModelBindingHelper
.TryUpdateModelAsync(
2725
return
ModelBindingHelper
.TryUpdateModelAsync(
2760
return await
ModelBindingHelper
.TryUpdateModelAsync(
2795
return
ModelBindingHelper
.TryUpdateModelAsync(
ModelBinding\Binders\CollectionModelBinder.cs (2)
293
boundCollection.Add(
ModelBindingHelper
.CastOrDefault<TElement>(boundValue));
375
boundCollection.Add(
ModelBindingHelper
.CastOrDefault<TElement>(boundValue));
ModelBinding\Binders\DictionaryModelBinder.cs (2)
169
convertedKey =
ModelBindingHelper
.ConvertTo<TKey>(kvp.Key, culture: null);
208
model[convertedKey] =
ModelBindingHelper
.CastOrDefault<TValue>(valueResult.Model);
ModelBinding\Binders\FormFileModelBinder.cs (2)
41
if (!createFileCollection && !
ModelBindingHelper
.CanGetCompatibleCollection<IFormFile>(bindingContext))
54
postedFiles =
ModelBindingHelper
.GetCompatibleCollection<IFormFile>(bindingContext);
ModelBinding\Binders\HeaderModelBinder.cs (2)
133
else if (
ModelBindingHelper
.CanGetCompatibleCollection<string>(bindingContext))
179
var collection =
ModelBindingHelper
.GetCompatibleCollection<string>(bindingContext, values.Length);
ModelBinding\Binders\KeyValuePairModelBinder.cs (2)
54
ModelBindingHelper
.CastOrDefault<TKey?>(keyResult.Model),
55
ModelBindingHelper
.CastOrDefault<TValue?>(valueResult.Model));
ModelBinding\DefaultPropertyFilterProvider.cs (1)
50
var expression =
ModelBindingHelper
.GetPropertyFilterExpression(includeExpressions.ToArray());