70-516 · Question #174
You use Microsoft .NET Framework 4.0 to develop an application that uses the Entity Framework. The application defines the following Entity SQL (ESQL) query, which must be executed against the mode…
Sign in or unlock 70-516 to reveal the answer and full explanation for question #174. The question stem and answer options stay visible for context.
Question
You use Microsoft .NET Framework 4.0 to develop an application that uses the Entity Framework. The application defines the following Entity SQL (ESQL) query, which must be executed against the mode. string prodQuery = “select value p from Products as p where p.ProductCategory.Name = @p0″; You need to execute the query. Which code segment should you use?
Options
- Avar prods = ctx.CreateQuery<Product>(prodQuery,
- Bvar prods = ctx.ExecuteStoreCommand(prodQuery,
- Cvar prods = ctx.ExecuteFunction<Product>(prodQuery,
- Dvar prods = ctx.ExecuteStoreQuery<Product>(prodQuery,
Unlock 70-516 to see the answer
You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.