Skip to content

[New article]: Entity Framework and .NET Aspire #2574

Open
@alistairmatthews

Description

@alistairmatthews

Proposed topic or title

Use Entity Framework with .NET Aspire

Location in table of contents.

Integrations

Reason for the article

We have around 17 open issues that relate to EF and .NET Aspire, such as:

I'm working on a new article to address as many of these as I can. Please let me know your thoughts by commenting on this issue.

The existing EF coverage consists of:

IMHO we need a new article to cover all these issues in depth, not a tutorial that only covers one scenario.

Article abstract

Topics to include:

  • When to use Aspire's AddXDbContext() method for each integration
  • When to use EnrichXDbContext() with examples using Interceptors
  • DBContextFactories and whether to use them in Aspire
  • Database context pooling in .NET Aspire. When is it good? How to use/not use it
  • Database first, code first, model first in Aspire
  • Migrations
    • Workflow for applying migrations
    • Why use a separate migrations service?
    • Whether to use a transaction with each migration (not for v9)
    • Troubleshooting tips

I think I'll include pivots for the four EF Integrations:

  • SQL Server
  • PostgreSQL
  • MySQL Pomelo
  • Oracle

Relevant searches

No response

Metadata

Metadata

Labels

⌚ Not TriagedNot triageddoc-ideaIndicates issues that are suggestions for new topics [org][type][category]in-pr

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions