Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COI switched it to person, which solved the issue. The name isn't a requirement, I was just taking on legacy code and my last thought as to why the model binder would fail was that the Action argument name matched a property name of the arguments class type. I don't get why this would cause any Ambiguity? emails.GetType().GetProperties() etc.. match them up against the json coming in.. if an arguments class type (schema i suppose) matches that of the json, great.. what does the argument name matter? How does the name come into play during the binding? It's name doesn't dictate it's class type!
      singulars
    2. COJSON is bound through the `DictionaryValueProvider`, so the values are associated through key names. If there are two keys of the same name, the Dictionary will not be valid. Please mark as answered if this was helpful.
      singulars
    3. COAnd those keys should come from the classes properties, not the name that you gave to the argument that is used to bind your model. How does the parameter name have any relevance when iterating over it's properties? var pi = controller.GetMethod("action").GetParameters(); How here, do you require the name of the parameter or how does it influence the outcome of retrieving the parameters at which point you can then get it's class type and iterate over it's properties to bind the data. It's not a question of two properties having the same name (invalid and wouldn't compile)..
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload