Skip to content

Examples

martincostello edited this page May 7, 2015 · 7 revisions

Code Examples

Introduction

This page gives some example snippets of how to do different tasks using the System.Data.SqlLocalDb assembly.

Creating an Instance

Creating a Throw-away Instance

Connecting to an Instance

Using an Instance as Part of a Unit Test

Runnable Examples

There are two projects included in the solution which can be run and debugged out-of-the-box by cloning the repository.

An example of using most of its functionality of the assembly can be found in the System.Data.SqlLocalDb.TestApp project.

An example of using the API with EntityFramework 6 can be found in the source System.Data.SqlLocalDb.EFSample project.

NuGet

Clone this wiki locally