December 2019
Intermediate to advanced
510 pages
11h 33m
English
The following subsection focuses on building the concrete implementation of the IItemRepository interface. It is vital to note that the IItemRepository interface is located in the Catalog.Domain project and the implementation of ItemRepository is in the Catalog.Infrastructure project.
Once we have built the DbContext class, we can proceed by implementing the concrete ItemRepository class:
using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using Catalog.Domain.Entities;using Catalog.Domain.Repositories;using Microsoft.EntityFrameworkCore;namespace Catalog.Infrastructure.Repositories{ public class ItemRepository : IItemRepository { private readonly CatalogContext _context; ...
Read now
Unlock full access