其他分享
首页 > 其他分享> > JObject遍历属性

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);
}

标签:JProperty,遍历,JObject,jp,workClumnExtensions,scer,SaveColumnExtensionRequest,属性
来源: https://www.cnblogs.com/wl-blog/p/14498500.html