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

Remove connectionName from "Add Npgsql database context with enrichment" code example #2337

Open
ncarandini opened this issue Dec 27, 2024 · 0 comments

Comments

@ncarandini
Copy link

Type of issue

Code doesn't work

Description

In the Add Npgsql database context with enrichment code example, the line:

connectionName: "postgresdb",

is invalid because, as is stated few lines later, "The EnrichNpgsqlDbContext won't make use of the ConnectionStrings configuration section since it expects a DbContext to be registered at the point it's called.

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/database/postgresql-entity-framework-integration?tabs=dotnet-cli

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/database/postgresql-entity-framework-integration.md

Document Version Independent Id

b0430379-092c-6361-27aa-a4c48d6b641e

Article author

@IEvangelist

@ncarandini ncarandini changed the title Remove connectionName: "postgresdb" from **Add Npgsql database context with enrichment** code example Remove connectionName: "postgresdb" from "Add Npgsql database context with enrichment" code example Dec 27, 2024
@ncarandini ncarandini changed the title Remove connectionName: "postgresdb" from "Add Npgsql database context with enrichment" code example Remove connectionName from "Add Npgsql database context with enrichment" code example Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant