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"
How to get LINQ loaded in VS 2022
Coreysan
1,806
Reputation points
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
2 answers
Sort by: Most helpful
-
-
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!