为什么要引用NewtonsoftJson .net5 内置了一套Json序列化/反序列化方案,默认可以不再依赖,不再支持 Newtonsoft.Json. .net5 System.Text.Json 和 Newtonsoft.Json 使用方法不一致,以及其他的差役建议使用Newtonsoft.J Read More
posted @ 2021-03-02 18:01 gygtech Views(1276) Comments(0) Diggs(0) Edit
命名空间 System.ComponentModel.DataAnnotations 全局模型验证,统一api响应 1、WebApi项目下新建文件夹【Custom】,新建文件夹【Filter】定义类FieldActionFilter using Microsoft.AspNetCore.Mvc; u Read More
posted @ 2021-03-02 14:15 gygtech Views(1277) Comments(0) Diggs(1) Edit