When you use the Scaffold-DbContext command, which parameters are required?
A)the -Connection and -OutputDir parameters
B)the -Context and -DataAnnotation parameters
C)the -Context and -Provider parameters
D)the -Connection and -Provider parameters
Given an entity named Products that has a Description property, and given a combo box named cboProducts, which of the following statements performs the same task as the statement below?
cboProducts.DisplayMember = “Description”;
A)cboProducts.DisplayMember = nameof(Products.Description);
B)cboProducts.DisplayMember = nameof(Products[“Description”]);
C)cboProducts.DisplayMember = nameof(“Products.Description”);
D)cboProducts.DisplayMember = nameof(Products);
Which type of concurrency control throws an exception if the database row that’s going to be updated or deleted has been changed since it was retrieved?
A)row locking
B)last-in wins
C)optimistic concurrency
D)pessimistic concurrency
The two main components of the Entity Framework are
A)Object Services and the .NET data provider
B)the Entity Data Model and the DBMS
C)Object Services and the EntityClient data provider
AD)the Entity Data Model and the EntityClient data provider
In which EF development technique do you start by writing entity and database context classes before generating a new database?
A)Initial Class development
B)Database First development
C)Entity Relationship development
D)Code First development
What tool can you use add the EF Core package to your project?
A)DbContext Explorer
B)NuGet Package Manager
C)Package Explorer
D)EF Core Manager
Which of the following annotations specifies the maximum string length allowed by the database column?
A)StringLength
B)Key
C)Required
D)Column
Which of the following is a way to query an Entity Data Model?
A)SQL Expressions
B)Transact SQL
C)LINQ to Entities
D)LINQ to Tables
In an Entity Data Model, what defines how the conceptual and storage models are related?
A)object services
B)mappings
C)the DBMS
D)ADO.NET
Given a class named MMABooksContext that inherits the DbContext class, which of the following statements creates the database context object?
A)MMABooksContext context = new DbContext();
B)MMABooksContext context = MMABooksContext.Create();
C)MMABooksContext context = new MMABooksContext();
D)MMABooksContext context = MMABooksContext.DbContext();
An Entity Data Model represents each table in a database with
A)an entity class
B)a database class
C)a table class
D)a DB context class
If two tables that you add to an Entity Data Model are related by a foreign key, what defines the association in the entity classes?
A)relational methods
B)association methods
C)navigation properties
D)the Relationship class
When using LINQ to Entities, which of the following do you not need to do to modify a row?
A)Assign new values to the properties of the object
B)Save the changes to the database
C)Retrieve the row and store it in an object created from an entity class
D)Save the changes to the DB context object