How to get LINQ loaded in VS 2022

Coreysan 1,806 Reputation points
2025-02-12T16:52:20.9133333+00:00

I installed VS 2022, 17.13.0, and included "LINQ to SQL" in Code tools. But LINQ is still not installed.

I read up on StackOverflow, and watched a few videos, but I have no idea why I still cannot get LINQ

installed.

Any thoughts or suggestions?

Current config:

ASP.NET and web development, .NET desktop development, data storage and processing, VS extension development, .NET Framework 4.7.2 dev tools. .NET Framework 4.8 dev tools

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,600 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 71,586 Reputation points
    2025-02-12T17:38:39.3366667+00:00

    you use visual studio installer to add support. run installer, click on modify, at the top select "individual components" instead of workloads. search for "linq to sql tools"


  2. Coreysan 1,806 Reputation points
    2025-02-17T19:53:51.96+00:00

    All I had to do was edit ApplicationDBContext.cs and include:

      public DbSet<Product> Product { get; set; }
    

    Once that line was present, Linq took care of itself. I didn't know about that behavior!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.