Skip to content

Create Menu.Infrastructure project and move persistence #1140

Open

Description

@dgee2

Goal

Extract EF Core context, entity configuration, and repository implementations into a dedicated Menu.Infrastructure project.

Spec reference

docs/specs/recipe-creation-target-architecture.md — §"Target project structure"

Implementation notes

  • New .NET class library backend/Menu.Infrastructure
  • Move EF Core MenuDbContext and entity configuration from MenuDB/ → Menu.Infrastructure
  • Move repository implementations from MenuApi/Repositories/ → Menu.Infrastructure
  • Update DI registrations in MenuApi/Program.cs
  • Update EF migration tooling: --project Menu.Infrastructure --startup-project MenuApi
  • Update AGENTS.md / README with corrected migration commands
  • All existing tests pass

Acceptance criteria

  • Menu.Infrastructure project builds
  • dotnet ef migrations add works with new --project arg
  • All tests pass

Testing

  • Verify migration tooling by running dotnet ef migrations list --project Menu.Infrastructure --startup-project MenuApi

Part of#1104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions