Step 1: Open Visual Studio 2017/2019 and Go to Tools > Get Tools and Features… It will ask permission for User Access Control. Click Continue.
Step 2: Click on Individual Components tab and then search for LINQ to SQL tools and click on Modify button.
Step 4: Now go to Add New Item section, and you will be able to add LINQ to SQL Classes in your project.