Q1. You would like to define a column to store a number without a fractional value, but you want to make the value optional. What .NET type should you use for such property?
Decimal
Decimal?
Int
Int?
Q2. If you want to make the first name column to be non-nullable in the database, you can rely on default conventions in Entity Framework and avoid all configuration, true or false?
Q3. You cannot override conventions that are preloaded with Entity Framework, such as the one that makes all foreign key constraints be setup to cascade on delete, true or false?
Q4. Which of the following is not a type of relationship?
One-to-Many
Many-to-Many
One-or-Zero-to-Many
Many-to-Default
Q5. The best way to configure all properties in all classes is to list them one by one in OnModelCreating
method of the context, true or false?
Q6. If you do not configure any additional information for string properties, what type will be used in the SQL Server database?
NVARCHAR(4000)
NVARCHAR(MAX)
VARBINARY(MAX)
VARCHAR...