Closed Executor-Cheng closed 4 years ago
You're mixing framework attributes with HybridModelBinding
. Keep [FromHybrid]
and change [BindProperty...
to [HybridBindProperty(new[] { Source.QueryString })]
if you want the library to handle binding.
Ok, thank you for your early reply.
Let's say we have a model like this:
and a action like this:
Now I'd like to perform a httprequest, specify the foo argument by QueryString
barrrr=barvalue
.foo.Bar
property will never be set tobarvalue
. But if I change[FromHybrid]
to[FromQuery]
, it works fine.