行实体,其列ID
的值435345
序列化为json字符串,并且不包含ID,而是'$ id',且值为1
我该如何解决?(。net Framework 4.6.1)
var jsonString = JsonConvert.SerializeObject(item, new JsonSerializerSettings {
ReferenceLoopHandling = ReferenceLoopHandling.Serialize,
PreserveReferencesHandling = PreserveReferencesHandling.None,
TypeNameHandling = TypeNameHandling.All
});