0
나는쿼리 - C#
{
"TrackGoods": {
"Attributes": {
"Attribute": {
"BlockName": "Default",
"Brand": "Default",
"CaseType": "Carton",
}
},
"Codes": [{
"trackcode": "191155772333RIF1"
},
{
"trackcode": "721141315199RIF2"
}],
"Time": "2017-12-18T13:35:04.0792480+05:30",
"IpAddress": "127.0.0.1",
"Lat": "155.00",
"Long": "-202.00",
}
}
{
"TrackGoods": {
"Attributes": {
"Attribute": {
"BlockName": "Default1",
"Brand": "Default1",
"CaseType": "Carton1",
}
},
"Codes": [{
"trackcode": "191155772333RIF3"
},
{
"trackcode": "721141315199RIF4"
}],
"Time": "2017-12-18T13:35:04.0792480+05:30",
"IpAddress": "127.0.0.1",
"Lat": "155.00",
"Long": "-202.00",
}
}
내가 어디 trackcode와 코드 = '191155772333RIF1'문서를 얻으려면, 아래와 같이 DocumentDB 2 개체가.
나는 다음과 같은 쿼리를 시도하고 하나가 DocDB에서 문서를 얻기 위해 도와 줄 수, DocDB에서string selectdoc = "select doc.TrackGoods from doc join Codes in doc.Codes where Codes.trackcode = '191155772333RIF1'";
query = new SqlQuerySpec(selectdoc,
new SqlParameterCollection(new SqlParameter[] {
new SqlParameter { Name = "@code", Value = code }
}));
을 문서를 반환하지 않습니다.
감사