From the course: Creating .NET MAUI Applications with Blazor

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Storing local data: Part 1

Storing local data: Part 1

- [Instructor] For client side applications, such as we are likely to make with Blazor Hybrid and MAUI, it is very common to need data to save across sessions and be available when the user's offline. The most common way to deal with this for structured storage within Blazor MAUI is the same as a standard MAUI app, SQLite. SQLite is a reasonably powerful client side database technology that supports transactions, indexing, and SQL syntax. There are several solutions to encrypt data, such as SSE and SQLCipher. However, this may not be needed for mobile applications if the data is stored in app local storage. If we plan on sharing code with a Blazor web assembly application, we would need a solution for structured storage there too. Since W3C depreciated WebSQL, the official answer is IndexedDB for structured storage. IndexedDB offers a full client side database experience with tables, indexes, and transactions. Unlike…

Contents