From the course: .NET Essentials: LINQ for Databases

Connect to included sample database - .NET Tutorial

From the course: .NET Essentials: LINQ for Databases

Start my 1-month free trial

Connect to included sample database

- [Instructor] LINQPad provides an easy way to add data connections and use them from within a query. You can see those connections on the left of the app. I've got one connection in mine. It's a sample database included with LINQPad. When you install LINQPad, it includes a sample SQL compact edition database. It's installed here at this location, so it's in your Users folder. This database requires that you have the SQL server compact edition NuGet package. So that means the first time you expand this connection like this, if you don't have that NuGet package on your local computer, you'll be asked if you want to download the package. Now I've already done that, so I don't see that dialogue. You can add your own connections by clicking on this add connection link. We'll look at how to do this in the next video. This is also useful to readd the sample connection. So if you don't see DemoDB.sdf in your connection list, you can add it back by using this dialogue and pointing to the database at this location in your Users folder.

Contents