This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each question.
Which of the following statements is true about Entity Framework (EF) Core?
It's the only way to access data from minimal API applications.
It's guaranteed to allow switching databases with no code changes.
It stores data in-memory, which is appropriate only in development.
It's a lightweight, extensible, and cross-platform data access technology for .NET applications.
Which of the following statements describes how an entity class is used in EF Core?
An entity class creates and manages the database connection.
Each class represents a business object in your application and generally maps to a single database table.
An entity class is useful only in development, but it will need to be replaced by a context class in production.
An entity class describes the HTTP endpoints that the application exposes and provides for a convenient data input page.
Which step is used to create the SQLite database?
Executing the dotnet ef database update command after creating one or more migrations.
dotnet ef database update
Running the dotnet watch command from the .NET CLI.
dotnet watch
Creating an EF Core context class, which inherits from DbContext.
DbContext
Executing the builder.Services.AddSqlite<PizzaDb>(connectionString); command in your Program.cs file.
builder.Services.AddSqlite<PizzaDb>(connectionString);
You must answer all questions before checking your work.
Was this page helpful?