![](/img/trans.png)
[英]In Expressive Annotations using the AssertThat attribute - how to modify the error message at runtime or pass in string values
在 Expressive Annotations 中,使用“AssertThat”屬性是否可以在運行時修改錯誤消息? 我在 ASP.NET MVC Classic 環境中工作,需要添加到我現有的驗證中。 新的驗證將檢查輸入的日期是否在特定日期范圍內,我想在錯誤消息中包含邊界日期,但日期不是常量並且可 ...