MVC Localization of Default Model Binder

后端 未结 3 399
北恋
北恋 2021-01-02 20:45

I am currently trying to figure out how to localize the error messages generated by MVC. Let me use the default model binder as an example, so I can explain the problem.

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 21:14

    Have you tried: IDataErrorInfo property

    This article will help

    • Validating with the IErrorDataInfo Interface (C#)

提交回复
热议问题