Adding SQLite to a .NET MAUI Application
Almost every app needs somewhere to keep data, and this brief post covers the basics of local storage with SQLite. Vladislav installs the sqlite-net-pcl and SQLitePCLRaw packages, builds a small repository class that opens a database file in the app’s local data folder and creates the table, and then calls it from MainPage.
The detail to watch for is on Apple platforms: iOS and Mac Catalyst need the SQLite provider set explicitly in AppDelegate before the app builds.
Links to three samples are included on GitHub: the basic MAUI app, a MAUI Blazor version, and one using Entity Framework Core.