Skip to content

EF migration snapshots reference historic *.Domain.Entities.* FQNs (Catalog + Order) #79

@emeraldleaf

Description

@emeraldleaf

What

When OrderService and CatalogService were flattened from `Domain.Entities` to `Domain` namespace during VSA refactors, the migration designer + snapshot files were left as-is. At runtime this is invisible — EF's migration runner consults only `__EFMigrationsHistory`, never the snapshot.

But the next `dotnet ef migrations add` against either DbContext would compare the current model (flat `Domain.`) against the snapshot (`Domain.Entities.`) and emit a destructive drop+recreate diff.

When to fix

When the first new migration is needed for either CatalogService or OrderService — regenerate the snapshot or hand-edit the FQN strings. No urgency; both schemas are stable.

Acceptance

  • Updated when the next migration is added (this issue closes the next time a migration ships and the snapshot is regenerated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions