Inherited Interface property not found by Model Binding

后端 未结 1 1073
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 10:19

I\'m getting stumped by this issue and I\'m not sure if it\'s my lack of understanding of the MVC framework, the .NET framework, or what. But some explanation from any corn

相关标签:
1条回答
  • 2021-01-05 10:45

    In base/abstract and concrete classes, properties, methods, etc are present. Interfaces, on the other hand, are implemented. Rules imposed by CLR.

    See this article explaining about ModelBinding and relation on this difference (Class x Interface).

    http://bradwilson.typepad.com/blog/2011/08/interface-attributes-class-attributes.html

    I think it is your answer.

    0 讨论(0)
提交回复
热议问题