question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DbContext class not showing up

See original GitHub issue

DataAccess 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:closed
  • Created a year ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Jammyocommented, Sep 5, 2022

idea.log Ah, sorry. Here you go. 😃

1reaction
seclerpcommented, Aug 15, 2022

I can reproduce maybe related issue and will look into it, but it’s related to the Startup project, not DbContext

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found