BTI420 Quiz 3

Quiz 3, on Tuesday, February 3, 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 describe the purpose and benefit of AutoMapper.

Converts an object to a different type, based on matching property names and types.

Code reduction; enables easy use of view model classes.

.

Recently you learned about an ‘add form’ view model class. Why or when would you use one?

Shape of the data that’s needed to render the HTML Form.

Pass initial data to the view, and data needed to render <select> elements and <input> groups.

.

What is ‘scaffolding’ in ASP.NET MVC projects?
Briefly describe how to create a scaffolded ‘create’ view, and its contents.

Generated code for prototyping or rapid app dev.

In the ‘create’ GET method, right-click, Add View. 
Choose the “Create” template, and specify a model class. 
Contents include HTML Form elements for textboxes.

.

.

.

.

.

.

.

.

.

.

.

.

  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: