December 2019
Intermediate to advanced
510 pages
11h 33m
English
Once we have declared the IUserRepository implementation, we can proceed by declaring the identity data context. The identity data context is identified by extending the IdentityDbContext class. This type of DbContext is used by EF Core to locate and access the data source used as the persistent user store. In order to declare the identity data context, it is necessary to extend the CatalogContext in the following way:
using System.Threading;using System.Threading.Tasks;using Microsoft.AspNetCore.Identity.EntityFrameworkCore;using Microsoft.EntityFrameworkCore;using Catalog.Domain.Entities;using Catalog.Domain.Repositories;using Catalog.SchemaDefinitions;namespace Catalog.Infrastructure{ public class ...
Read now
Unlock full access