nerdexam
Microsoft

70-516 · Question #143

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application. You use the Entity Framework Designer to create an Entity Data Model using model-first development…

The correct answer is A. Create a new T4 template, and set the DDL Generation template to the name of the new. Model-First in the Entity Framework 4

Deploying and Troubleshooting Data Access

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application. You use the Entity Framework Designer to create an Entity Data Model using model-first development. The database has the following requirements:

  • each table must have a datetime column named time_modified
  • each table requires a trigger that updates the value of the

time_modified column when a row is inserted or updated You need to ensure that the database script that is created by using the Generate Database From Model option meets the requirements. What should you do?

Options

  • ACreate a new T4 template, and set the DDL Generation template to the name of the new
  • BCreate a new Windows Workflow Foundation workflow, and set Database Generation
  • CAdd a DateTime property named time_modified to each entity in the model and set the
  • DAdd a new entity named time_modified to the model, and modify each existing entity so that

How the community answered

(56 responses)
  • A
    84% (47)
  • B
    2% (1)
  • C
    9% (5)
  • D
    5% (3)

Explanation

Model-First in the Entity Framework 4

Topics

#T4 template#DDL generation#model-first#Entity Framework Designer

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice