In visual studio 2012 there is a Data menu option and add data source option that can be use to add a connection string to the app.config or the web.config. Where is that menu in Visual Studio 2015 ?
Open your project in Visual Studio, and then choose Project > Add New Data Source to start the Data Source Configuration Wizard. Choose the type of data source to which you'll be connecting. Choose the database or databases that will be the data source for your dataset.
Create a new data sourceIn the Connect to data tab, select the type of data you to which you want to connect. Select the specific data set and provide your authorization, if necessary. In the bottom right, click Add.
In Solution Explorer (on the right of the Microsoft Visual Studio window), right-click Data Source Views, and then click New Data Source View. On the Welcome to the Data Source View Wizard page, click Next. The Select a Data Source page appears.
To open the Data Sources window, make sure your project is open, and then press Shift+Alt+D or choose View > Other Windows > Data Sources.
To open data source window choose View -> Other Windows -> Data Sources
as well you can try the short keys Shift+Alt+D
.
Data sources window is not available for web applications, only available for windows forms and WPF applications in visual studio 2015.
you can use Server explorer instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With