#table1# pid property address 1 property1 Ashfield 2 property2 Burwood #table2# id images pid 1 img1 1 2 img2 1 3 img3 2
如何從上面的表中使用c#使用asp.net生成類似下面的json數據?從兩個數據庫表生成嵌套的json數據
property[
{
id: 1,
property: property1,
address: Ashfield,
images:[
images: img1,
images: img2
]},
id: 2,
property: property2,
address: Burwood,
images:[
images: img3
]}
]