Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to deploy localdb database with WPF app

$
0
0

I have created a WPF app that uses a SQL database via the (localdb)\v11.0. Firstly I created the database very easily in VS2012 Pro SP1. Then using Entity Framework option 'database first' to create the classes. Now the app works but I need to deploy it to others. The database needs to run on each person's machine as it will always be local to each person's pc.

How should I go about with the deployment (without creating installers)?

Currently my connection string in app.config looks something like this:

<connectionStrings><add name="DatabaseContext" connectionString="metadata=res://*/src.DatabaseModel.csdl|res://*/src.DatabaseModel.ssdl|res://*/src.DatabaseModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(localdb)\v11.0;initial catalog=DatabaseFirst;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>