BTI420 Quiz 4

Quiz 4, on Tuesday, February 10, 2015

.

The sample answers are just that – sample answers. It is not necessary to include all items in a sample answer in order to earn partial or full credit.

.

Briefly explain the purpose and benefit of data annotations. (What problem do they solve?)

Property constraints, limits, type validation, and so on.

Property value formatting and user interface help (e.g. error messages).

Improves the quality of data presented to the user.

Improves the quality of data gathered from the user.

Easy configuration of some RDBMS properties.

.

Write a brief definition of the Entity Framework. In your opinion, what is its value?

Enables the use of a database-hosted persistent store.

Performs object-relational mapping.

Programmers continue to work with objects (and collections) in their code, and the implementation details (in the relational database management system) are handled by EF.

.

Assume that you are writing code in the Manager class. When fetching one or more objects from a persistent store, how can you fetch the associated object(s)? Briefly explain.

Associated objects are not fetched, by default.

Must use the Include() method, and name the desired navigation property.

.

.

.

.

.

.

.

.

.

.

.

.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: