Part1 Flashcards

1
Q

What is content negotiation?

A

It is a mechanism using whihc the client can decide the format of the response form the server.

We do it using Accept header.

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

We have to add an image to our model? How to do that?

A

Storing an image inside the database is not a good design. Hence, we need to use a storage. We store the image in the storage and the reference to that image in the database.

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

What attribute we use to not to add a property to a database?

A

[NotMapped]

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