Sql Server Integration Tutorial is Missing Razor Imports #2102
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.
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
The text was updated successfully, but these errors were encountered: