PrepAway - Latest Free Exam Questions & Answers

What should you do?

You are developing an ASP.NET Dynamic Data Web application.
The application uses entities from a global library named Entities.
The Application_Start event contains the following code segment.

DefaultModel.RegisterContext(typeof(
Entities.MyDBDataContext), new ContextConfiguration() {
ScaffcidAilTafcies = false });

You need to ensure that the application shows the Order and Customer entities 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 Customer entities within the Web application and apply the [ScaffoldTable(true)] attribute.

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

2 Comments on “What should you do?


Leave a Reply