DbContext class not showing up
See original GitHub issueDataAccess project
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.8" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="6.0.8" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
Startup Project:
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
</ItemGroup>
- OS: Win10
- .NET SDK info (installed ones and version used within Rider): Net. 6
- Plugin version: latest
- Rider version: latest
Issue Analytics
- State:
- Created a year ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
DbContext class, can't find - Stack Overflow
I´m struggling with a similiar project, where the compiler throws an error telling it cannot find DbContext and DbSet classes, but the source ......
Read more >The Type Or Namespace DbContext Could Not Be Found
In this azure tutorial, we will discuss how to fix the error, The Type Or Namespace DbContext Could Not Be Found. Which I...
Read more >Create a complex data model - ASP.NET MVC with EF Core
Run the app, go to the Students Index page and notice that times are no longer displayed for the enrollment dates. The same...
Read more >Create Entity Data Model - Entity Framework Tutorial
Note: If you already have installed the latest version of Entity Framework using NuGet manager, then this step of the wizard will no...
Read more >Scaffolding doesn't work when DbContext is in a separate ...
I found a solution. You can create a dbcontext factory class in same folder with your ApplicationDbContext class. This factory class creates ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
idea.log Ah, sorry. Here you go. 😃
I can reproduce maybe related issue and will look into it, but it’s related to the Startup project, not DbContext