Skip to content

Add migration error using AddCustomIdentity #10

@pavini

Description

@pavini

I'm trying to use AddCustomIdentity() and I'm getting this error when run the add migration command.

No DbContext named 'NetDevPackAppDbContext' was found.
File IdentityConfig.cs

services.AddIdentityEntityFrameworkContextConfiguration(options =>
                options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"),
                    b => b.MigrationsAssembly("Equinox.Infra.CrossCutting.Identity")))
                .AddCustomIdentity<ApplicationUser>();

ApplicationUser.cs

public class ApplicationUser : IdentityUser
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions