Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing LINQ to SQL Classes (DBML designer) in Visual Studio 2017 RC

How can I add LINQ to SQL class (.dbml file) to Visual Studio 2017 RC. I can't find it. Please help, thanks.

This is the ss of Data templates.

like image 265
Çağatay Ay Avatar asked Feb 27 '17 12:02

Çağatay Ay


People also ask

How do I get LINQ to SQL in Visual Studio?

To install the LINQ to SQL tools, start the Visual Studio installer, choose Modify, then select the Individual Components tab, and then select LINQ to SQL tools under the Code Tools category.

What is Dbml in LINQ to SQL?

The DBML file is mapping that defines your classes based on your database schema. Yes, it defines your (default) connection string, but it doesn't "configure" your database at all. Linq to Sql uses a database-first approach where you have the database and model your classes after the DB schema.


1 Answers

You need to opt in to enable the designer during installation, it is not enabled by default: https://developercommunity.visualstudio.com/content/problem/4616/linq-to-sql-dbml-designer-in-not-working.html

"Editing .dbml files with a designer surface requires the LINQ to SQL tools which are not installed by default as part of any of the workloads of Visual Studio 2017. It can be installed by selecting the 'LINQ to SQL tools' item under the 'Code Tools' category in the 'Individual Components' tab of the Visual Studio installer."

like image 175
ErikEJ Avatar answered Sep 30 '22 06:09

ErikEJ