Skip to content

database migrations #1121

@SharonBH

Description

@SharonBH

it seems that i'm failing to add database migration for the CatalogDBContext.

this is the error:
Unable to create a 'DbContext' of type 'CatalogDbContext'. The exception 'Unable to resolve service for type 'Finbuckle.MultiTenant.Abstractions.IMultiTenantContextAccessor`1[FSH.Framework.Infrastructure.Tenant.FshTenantInfo]' while attempting to activate 'FSH.Starter.WebApi.Catalog.Infrastructure.Persistence.CatalogDbContext'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

the command i tried:
dotnet ef migrations add AddAgencyEntity --context CatalogDbContext --output-dir src/api/migrations/PostgreSQL/Catalog

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions