Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New article] Use Entity Framework database contexts with .NET Aspire #2666

Merged

Conversation

alistairmatthews
Copy link
Contributor

@alistairmatthews alistairmatthews commented Feb 24, 2025

Summary

Creates a new article on using EF DB Contexts with .NET Aspire. Subjects covered include enriching contexts, EF interceptors, dynamic connection strings, context factories, and pooled contexts. Pivots on the database system: SQL Server, PostgreSQL, Oracle, and MySQL.

Fixes #2246 and fixes #2287
Partially addresses #2574, #2336


Internal previews

📄 File 🔗 Preview link
docs/database/azure-cosmos-db-integration.md .NET Aspire Azure Cosmos DB integration
docs/database/azure-postgresql-integration.md .NET Aspire Azure PostgreSQL integration
docs/database/entity-framework-core-integration-overview.md Entity Framework Core overview
docs/toc.yml docs/toc
docs/zones/zone-pivot-groups.yml YamlMime:ZonePivotGroups

@dotnetrepoman dotnetrepoman bot added the database Content related to database. label Feb 24, 2025
@davidfowl
Copy link
Member

cc @DamianEdwards @AndriySvyryd @eerhardt @sebastienros

@davidfowl
Copy link
Member

I think the framing here should match what we did with the azure overview (#2666 (comment)).

Entity Framework is a top level integration node that captures how EF integrates with Aspire. Each EF provider integration is then nested underneath that EF node (postgres, sql, mysql, oracle, cosmos etc).

@IEvangelist
Copy link
Member

Hey @alistairmatthews - I have a PR into your PR here that adjusts the TOC: alistairmatthews#3

@IEvangelist IEvangelist added the DO NOT MERGE Help prevent PR from mistakenly being merged. label Mar 3, 2025
@alistairmatthews
Copy link
Contributor Author

Hey @alistairmatthews - I have a PR into your PR here that adjusts the TOC: alistairmatthews#3

Thanks @IEvangelist! I've merged it but it seems to cause a conflict in toc.yml. Don't think I have permissions to fix that. :~(

@IEvangelist
Copy link
Member

Hey @alistairmatthews - I have a PR into your PR here that adjusts the TOC: alistairmatthews#3

Thanks @IEvangelist! I've merged it but it seems to cause a conflict in toc.yml. Don't think I have permissions to fix that. :~(

@alistairmatthews I fixed the merge conflict.

@IEvangelist
Copy link
Member

@davidfowl - thoughts on this TOC:

image

@davidfowl
Copy link
Member

YES please! We can remove the "EF Core Integration" suffix

@IEvangelist IEvangelist merged commit c35dcb1 into dotnet:main Mar 3, 2025
8 checks passed
@alistairmatthews
Copy link
Contributor Author

Thanks for the help, @IEvangelist, @AndriySvyryd, and @davidfowl!

@alistairmatthews alistairmatthews deleted the new-article-entity-framework branch March 6, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution database Content related to database. DO NOT MERGE Help prevent PR from mistakenly being merged.
Projects
None yet
4 participants