Finding custom attributes on view model properties when model binding

后端 未结 1 1272
太阳男子
太阳男子 2020-12-17 15:11

I\'ve found a lot of information on implementing a custom model binder for validation purposes but I haven\'t seen much about what I\'m attempting to do.

I want to

1条回答
  •  执念已碎
    2020-12-17 15:37

    The "correct" way (per the guy who wrote it) is to write a model metadata provider. There's an example at the link. Not precisely "simple," but it works, and you'll be doing what the rest of MVC does.

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