JsonPropertyAttribute是命名空间Newtonsoft.Json下的特性,我使用的是System.Runtime.Serialization.Json来序列化,因此序列化的时候忽略了JsonPropertyAttribute(PropertyName)
解决办法:System.Runtime.Serialization的DataContractAttribute和DataMemberAttribute都有一个Name属性,直接修改即可。
eg.
[DataMember(Name = "exec_type")]
public int ExecType { get; set; }