摘要: 前言 在framework的mvc中,经常会使用 Model.State 、 ModelState.IsValid 配合着特性进行参数验证,通过这种方式可以降低controller的复杂度,使用方便。 常见的特性有: RequiredAttribute、RangeAttribute等... 而在.n 阅读全文
posted @ 2020-07-16 14:07 前行丶 阅读(1944) 评论(0) 推荐(0) 编辑