Question: ( TCO 3 ) In the Startup.cs file, what does the following code do ? public void ConfigureServices ( IServiceCollection services ) { . .
TCO In the Startup.cs file, what does the following code do
public void ConfigureServicesIServiceCollection services
services.AddDbContextoptions
options.UseSqlServer
Configuration.GetConnectionStringCustomer;
Group of answer choices
It sets up dependency injection to inject a CustomerContext object into any controllers that need it
It specifies that EF Core should use a SQL Server database.
It reads the connection string for the database from a file.
All of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
