但當id傳入非數(shù)字時,報錯,生成的內(nèi)容是這樣:模型:錯誤提示:The value 'sfsf' is not valid. 這句在哪里修改?在模型中試了都不對啊。
.net core 2.1 參數(shù)驗證
慕尼黑8549860
2018-08-21 10:09:54