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

Open
AndyBevan opened this issue Nov 17, 2024 · 0 comments
Open

Sql Server Integration Tutorial is Missing Razor Imports #2102

AndyBevan opened this issue Nov 17, 2024 · 0 comments
Labels
⌚ Not Triaged Not triaged

Comments

@AndyBevan
Copy link

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

@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌚ Not Triaged Not triaged
Projects
None yet
Development

No branches or pull requests

1 participant