Skip to content

Commit d4c6381

Browse files
committed
Merged main into live
2 parents 7ea7381 + ad198da commit d4c6381

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

uwp/data-access/sqlite-databases.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ The rest of this guide helps you to use this library.
4343

4444
We'll start with a basic UWP project, and then install the appropriate Nuget packages.
4545

46+
> [!NOTE]
47+
> Make sure you install the `Microsoft.Data.Sqlite' package and not 'Microsoft.Data.Sqlite.Core`. This package will install `Microsoft.Data.Sqlite.Core` as a dependency.
48+
4649
All supported versions of Windows support SQLite, so your app does not have to package SQLite libraries. Instead, your app can use the version of SQLite that comes installed with Windows. This helps you in a few ways.
4750

4851
:heavy_check_mark: Reduces the size of your application because you don't have to download the SQLite binary, and then package it as part of your application.
@@ -150,6 +153,7 @@ public static void AddData(string inputText)
150153
using (SqliteConnection db =
151154
new SqliteConnection($"Filename={dbpath}"))
152155
{
156+
SQLitePCL.Batteries.Init();
153157
db.Open();
154158

155159
SqliteCommand insertCommand = new SqliteCommand();

0 commit comments

Comments
 (0)