Search code examples
c#winformsvisual-studio-2015local-database

No Local Database in list of Visual Studio 2015


Hello I'm trying create local database with Visual Studio 2015, but in items list I have no any Local Database, there is only Dataset and Service-based Database and with Search Templates also nothing. Can you help me figure out, what I have to do, where and how to get it to use?


Solution

  • It looks like in Visual Studio 2015, the way to add a local database is to select the Service Database option, and to set up a data source pointing to the resulting database file.

    MSDN has a tutorial for this here. They also note here that not all projects support opening the data sources window. If you need to setup a local database with something like ASP.NET MVC, you can refer to this tutorial on setting up a localdb database.