PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the application shows the Orderand Customerentities and hides all other entities

You are deloping an ASP.NET Dynamic Data Web application.
The application uses entities from a global librarynamed Entities.
The Application_Startevent contains the following code segment:
DefaultModel.RegisterContect(typeof)(
Entities.MyDBDataContext), new ContextConfiguration() {
ScaffoldAllTables = false });
You need to ensure that the application shows the Orderand Customerentities and hides all other entities.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Set the ScaffoldAllTables property of the ContextConfiguration to true.

B.
Create a partial class for each entity except Order and Customer within the Entities library and apply the
[ScaffoldTable(false)] attribute.

C.
Create a partial class for the Order and Customerentities within the web application and apply the
[ScaffoldTable(true)] attribute.

D.
Create a partial class for the Order and Customerentities within the Entities library and apply the
[ScaffoldTable(true)] attribute.


Leave a Reply