裡面就新增個RequiredAttribute 把它Union 到attributes 就行了。 如果只想把[Required] 加在model 的某個欄位,那裡面就再寫個if(propertyName="欄位 ...
確定! 回上一頁