18 references to ModelBindingHelper
Microsoft.AspNetCore.Mvc.Core (18)
ControllerBase.cs (7)
2586
return
ModelBindingHelper
.TryUpdateModelAsync(
2623
return await
ModelBindingHelper
.TryUpdateModelAsync(
2660
return await
ModelBindingHelper
.TryUpdateModelAsync(
2695
return
ModelBindingHelper
.TryUpdateModelAsync(
2729
return
ModelBindingHelper
.TryUpdateModelAsync(
2764
return await
ModelBindingHelper
.TryUpdateModelAsync(
2799
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());