palapapa
❔ What is the purpose of `ModelBindingContext.Model`, `ModelName`, and `ModelBinderAttribute.Name`?
It seems that
ModelName
is just the argument name, and ModelBinderAttribute.Name
and override that name. Since usually the argument name is the same as, say, some route data segment, by using ValueProvider.GetValue(context.ModelName)
, you can usually get the route data. I guess this is what the default model binder does, and of course this won't work with complex types.
But I still don't understand what ModelBindingContext.Model
is supposed to do though.3 replies
❔ Inconsistency in the documentation of model binding for complex types?
https://webmasters.stackexchange.com/questions/90339/why-are-urls-case-sensitive Here it says the query string is case sensitive though
8 replies