【发布时间】:2017-02-19 00:00:29
【问题描述】:
{
"payload": {
"coordinators": [
{
"coordinatorID": "1",
"remarks": "a",
"briefObservation": "a",
"justifyingRecommendation": "a",
"sectors": [
{
"sectorNumber": "8",
"projectDescription": "a",
"knowledgeMarks": "a",
"siteMarks": "a",
"impactAccessmentMarks": "a",
"empAddressingMarks": "a",
"totalMarks": "a",
"recommendation": "a",
"category": "a"
},
{
"sectorNumber": "10",
"projectDescription": "a",
"knowledgeMarks": "a",
"siteMarks": "a",
"impactAccessmentMarks": "a",
"empAddressingMarks": "a",
"totalMarks": "a",
"recommendation": "a",
"category": "a"
}
]
}
]
},
"status": 0,
"message": "Success/Fail Reason"
}
【问题讨论】:
-
首先是deserielize,然后是inset into your SQL server。您有很多选择来执行这些操作。这只是一个例子。
-
您使用的是哪个版本的 SQL Server?还是您使用不同的数据库?
-
要获取C#类进行反序列化,在json2csharp.com中输入json文本并点击“生成”。