简体   繁体   中英

While adding ADO.NET entity data model the Visual Studio 2017 does not showing server name

I want to connect my database from SQL server 2014 to MVC project by using ADO.NET entity data model .

The following steps that I taken:

  1. Right click on Model folder then click on Add then click on New Item
  2. select ADO.NET Entity Data Model and renamed it and clicked on Add button
  3. On Entity Data Model Wizard I selected EF Designer from Database and clicked on Next button
  4. clicked on New Connection and choose Data source as Microsoft SQL Server and clicked on next button
  5. on the option Server name the server list is shown with empty list
  1. In Object Explorer, right-click a server, and then click Properties
  2. Copy Server name that is present in first row in front of the Name
  3. eg: DESKTOP-D1AHL5B\\SQL2014
  4. Past this name in the server list and click on Test connection

i hope this will help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM