What should you do?
A. Add the following code segment at line 07.ctx.LoadProperty(category, “Products”);
B. Add the following code segment at line 09.ctx.LoadProperty(product, “*”);
C. Add the following code segment at line 07.var strPrdUri = string.Format(“Categories({0})? $expand=Products”, category.CategoryID); var productUri = new Uri (strPrdUri, UriKind.Relative); ctx.Execute<Product>(productUri);
D. Add the following code segment at line 09.var strPrdUri = string.Format(“Products? $filter=CategoryID eq {0}”, category.CategoryID); var productUri = new Uri (strPrdUri, UriKind.Relative); ctx.Execute<Product>(productUri);
Answer:A
What should you do?
A. Add the following code segment at line 07.ctx.LoadProperty(category, “Products”); B. Add the following code segment at line 09.ctx.LoadProperty(product, “*”); C. Add the following code segment at line 07.var strPrdUri = string.Format(“Categories({0})? $expand=Products”, category.CategoryID); var productUri = new Uri (strPrdUri, UriKind.Relative); ctx.Execute<Product>(productUri); D. Add the following code segment at line 09.var strPrdUri = string.Format(“Products? $filter=CategoryID eq {0}”, category.CategoryID); var productUri = new Uri (strPrdUri, UriKind.Relative); ctx.Execute<Product>(productUri);