2

I need to create a new data source starting from a custom object.

This seems possible in Visual Studio 2015 as stated here , but I can't find the Project > Add New Data Source menu entry.

I also tried:

  • this answer but the stated menu entry does not exist in VS2015 and the key shortcut just expands the Debug menu

  • updating VS2015 to Update 3 enabling all components that seemed relevant to the matter

  • creating a custom dataset, but VS always asks me for a DB connection

So far no luck in finding that dialog. Did anyone find it somewhere?

Thanks in advance for every advice!

Community
  • 1
  • 1
GigiSan
  • 1,170
  • 2
  • 19
  • 30
  • Possible duplicate of [Cannot add a Data Source in web project using the Data Source Configuration Wizard](https://stackoverflow.com/questions/36022437/cannot-add-a-data-source-in-web-project-using-the-data-source-configuration-wiza) – Leandro Bardelli Jul 25 '19 at 16:06

2 Answers2

1

I found the solution in this answer.

You simply cannot add an object data source to web-type projects. Instead, you must create an intermediate class library project in which you create the data source and then reference this new project in the web project.

Hope this helps!

Community
  • 1
  • 1
GigiSan
  • 1,170
  • 2
  • 19
  • 30
0

Try View -> Database Explorer. And in the database explorer, right click in some empty space and click Add Connection.

View -> Database Explorer

Behzad Ebrahimi
  • 992
  • 1
  • 16
  • 28