修改字段名称

This commit is contained in:
admin
2021-01-19 11:10:39 +08:00
parent 7f130871c6
commit 7bf0fe9125
12 changed files with 96 additions and 35 deletions

View File

@@ -17,16 +17,8 @@ using System.Web.Http.Filters;
namespace NX.ERP.WebAPi
{
public class JsonContentNegotiator : IContentNegotiator
{
private readonly JsonMediaTypeFormatter _jsonFormatter;
public JsonContentNegotiator(JsonMediaTypeFormatter formatter)
@@ -60,7 +52,7 @@ namespace NX.ERP.WebAPi
{
//忽略循环引用,如果设置为Error,则遇到循环引用的时候报错
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
NullValueHandling = NullValueHandling.Ignore,
//NullValueHandling = NullValueHandling.Ignore,
//Formatting = Newtonsoft.Json.Formatting.Indented,
//小驼峰命名法
ContractResolver = new DefaultContractResolver()