December 2019
Intermediate to advanced
510 pages
11h 33m
English
Let's proceed by implementing the data access layer and create a concrete implementation of the IUserRepository interface. The UserRepository class will have to main dependencies, the SignInManager and the UserManager classes, both of which are provided by the Microsoft.AspNetCore.Identity package:
using System.Threading;using System.Threading.Tasks;using Catalog.Domain.Entities;using Catalog.Domain.Repositories;using Microsoft.AspNetCore.Identity;using Microsoft.EntityFrameworkCore;namespace Catalog.Infrastructure.Repositories{ public class UserRepository : IUserRepository { private readonly SignInManager<User> _signInManager; private readonly UserManager<User> _userManager; public UserRepository(UserManager<User> ...Read now
Unlock full access