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

Sql Server Integration Tutorial is Missing Razor Imports #2102

Closed
AndyBevan opened this issue Nov 17, 2024 · 0 comments · Fixed by #2544
Closed

Sql Server Integration Tutorial is Missing Razor Imports #2102

AndyBevan opened this issue Nov 17, 2024 · 0 comments · Fixed by #2544
Assignees
Labels
database Content related to database. doc-bug Problem with the content; needs to be fixed [org][type][category] in-pr okr-quality Content-health KR: Concerns article defects/freshness or build warnings. Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@AndyBevan
Copy link

AndyBevan commented Nov 17, 2024

Describe the issue or suggestion

The Sql Server Integration Tutorial is Missing Razor Imports, so when you work through it and build you get the error below. The solution is to a @using Microsoft.EntityFrameworkCore to the _Imports.razor file - if you're interested in having the tutorial updated to include this step so that it works as an end to end tutorial let me know and I'll put in a PR.

1>C:\<redacted>\Tutorials\AspireSQLEFCore\AspireSQLEFCore\Components\Pages\Home.razor(49,41,49,52): error CS1061: 'DbSet<SupportTicket>' does not contain a definition for 'ToListAsync' and no accessible extension method 'ToListAsync' accepting a first argument of type 'DbSet<SupportTicket>' could be found (are you missing a using directive or an assembly reference?) 1>C:\<redacted>\Tutorials\AspireSQLEFCore\AspireSQLEFCore\Components\Pages\Home.razor(58,41,58,52): error CS1061: 'DbSet<SupportTicket>' does not contain a definition for 'ToListAsync' and no accessible extension method 'ToListAsync' accepting a first argument of type 'DbSet<SupportTicket>' could be found (are you missing a using directive or an assembly reference?) 1>Done building project "AspireSQLEFCore.csproj" -- FAILED.

https://learn.microsoft.com/en-us/dotnet/aspire/database/sql-server-integrations


Associated WorkItem - 370939

@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Nov 17, 2024
@IEvangelist IEvangelist self-assigned this Feb 5, 2025
@IEvangelist IEvangelist added 🗺️ reQUEST Triggers an issue to be imported into Quest. Pri1 High priority, do before Pri2 and Pri3 database Content related to database. doc-bug Problem with the content; needs to be fixed [org][type][category] okr-quality Content-health KR: Concerns article defects/freshness or build warnings. and removed ⌚ Not Triaged Not triaged labels Feb 5, 2025
@dotnetrepoman dotnetrepoman bot added 🗺️ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. and removed 🗺️ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. labels Feb 5, 2025
@sequestor sequestor bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Content related to database. doc-bug Problem with the content; needs to be fixed [org][type][category] in-pr okr-quality Content-health KR: Concerns article defects/freshness or build warnings. Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
Development

Successfully merging a pull request may close this issue.

2 participants