Question: ( TCO 3 ) In the Startup.cs file, what does the following code do ? public void ConfigureServices ( IServiceCollection services ) { . .

(TCO 3) In the Startup.cs file, what does the following code do?
public void ConfigureServices(IServiceCollection services)
{
...
services.AddDbContext(options =>
options.UseSqlServer(
Configuration.GetConnectionString("Customer")));
}
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!