CSELE3 Flashcards

(16 cards)

1
Q

Represents the database itself

A
  • DbContext
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Represents a collection of data from a specific table. (I feel like it refers to a whole row or column)
It could be a table

A
  • DbSet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Establishes the foundation of your database scheme

Translating your data model into SQL statements

A

MigrationFile (initialCreate)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A representation of you database model at a specific point in time

A

ContextModelSnapshot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A file that contains HTML markup with C# code using Razor syntax.

A

.cshtml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A file that contains C# code that handles page events.

A

.cshtml.cs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Razor pages are derived from_____

A

Pages Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

By convention, the PageModel derived class is named _____

A

PageNameModel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

_____are derived from Pages Model

A

Razor Pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The _____ directive makes the file an MVC action, which means that it can handle requests.

A

@page Razor directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

_____must be the first Razor directive on a page.

A

@page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The _____specifies the type of model passed to the Razor Page.

It makes the PageModel derived class available to the Razor Page.

A

@model directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Server side components processed on the server to create and render HTML elements.

Similar to HTML helpers

A

Tag Helpers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Are attributes applied to model properties to specify validation rules, formatting, and other metadata for data stored in those properties.

Used to provide metadata and behavior for model properties, ensuring data integrity and helping with various data-related tasks in your application.

A

Data Annotation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

WHY SHOULD WE USE DATA ANNOTATION?

A
  • Model Validation
  • Database Modelling
  • Controlling the display of attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

By default the tag helpers is instantiated in

A

_ViewImport.cshtml