Summary
In this chapter, we reviewed two ways of storing data. The simplest and most lightweight is to use the preferences facilities of .NET MAUI. This is great if all you need is to store primitives and short strings that are targeted at persisting a user’s preferences for a program.
If you need to persist more substantial data, you’ll need a database, and by far the most popular type for on-device storage is SQLite. We examined the CRUD functionality of SQLite and then pointed out the alternative of not storing everything on a device but, rather, storing in the cloud and gaining access through a program’s API.