修改字段名称
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user