c# – How to create an Internal database inside WPF application that doesnt require any outside connections?

c# – How to create an Internal database inside WPF application that doesnt require any outside connections?

You can use SQLite which can be found here.

A tutorial can be found here.

You can also use SQL Server Express that is limited in terms of Size ( 10Gb).

And it s easy to setup with MS installers

Youll have a connection string like :

<add name=ConnectionStringName
    providerName=System.Data.SqlClient
    connectionString=Data Source=(LocalDBv11.0;AttachDbFileName=|DataDirectory|DatabaseFileName.mdf;
   InitialCatalog=DatabaseName;
   Integrated Security=True;MultipleActiveResultSets=True />

Regards

c# – How to create an Internal database inside WPF application that doesnt require any outside connections?

Leave a Reply

Your email address will not be published. Required fields are marked *