"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."
If, you use the DotNetCore. Linq to SQL doesn't show the option. To use Linq to SQL, you need to select DotNetFrameWork then you'll have an option to select Linq to SQL. It worked for me.