Connecting to a Database and Implementing CRUD Operations
How many apps on your phone don’t store information in some sort of database? Probably not many. Even simple apps, such as calculators, often save a history of operations.
Back in 2022, when .NET MAUI had its first official release, I built a simple .NET MAUI application. I was surprised to encounter noticeable lags despite the UI being relatively simple. After profiling the app, I discovered that the problem lay in how I was loading data from the database. In this chapter, I will describe how to avoid the issues I encountered and implement best practices for database communication.
In each recipe covered in this chapter, we will build on the project from the previous step. By the end of this chapter, you’ll have implemented a CRUD application that retrieves information from both local and remote storage. You’ll learn how to create separate views to display and edit information, and how to effectively...