December 2018
Beginner to intermediate
668 pages
15h 30m
English
Open the Startup.cs file, and import the following namespace:
using NorthwindService.Repositories;
Add the following statement to the bottom of the ConfigureServices method that will register the CustomerRepository for use at runtime by ASP.NET Core, as shown in the following code:
services.AddScoped<ICustomerRepository, CustomerRepository>();
Read now
Unlock full access