JObject遍历属性

//添加扩展列信息
JObject workClumnExtensions = (JObject)(request.ExtraInfo);
foreach (JProperty jp in workClumnExtensions.Properties())
{
SaveColumnExtensionRequest scer = new SaveColumnExtensionRequest();
scer.ForeignId = workerId;
scer.ColumnName = jp.Name;
scer.ColumnValue = jp.Value.ToString();
await _columnExtensionService.SaveColumnExtension(scer);
}

上一篇:关于hangfire 添加到定时任务未执行的问题解决


下一篇:jobject所对应的java端的对象的属性和方法