Xamarin.Forms Local Database Tutorial

  • Article
  • Developer (Beginner)
  • 12 minutes to complete

Before attempting this tutorial, you should have successfully completed the:

  • Build your first Xamarin.Forms app quickstart.
  • StackLayout tutorial.
  • Button tutorial.
  • Entry tutorial.
  • CollectionView tutorial.

In this tutorial, you learn how to:

  • Use the NuGet Package Manager to add SQLite.NET to a Xamarin.Forms project.
  • Create the data access classes.
  • Consume the data access classes.

You will use Visual Studio 2019, or Visual Studio for Mac, to create a simple application that demonstrates how to store data in a local SQLite.NET database. The following screenshots show the final application:

Screenshot of local SQLite.NET database data persistence, on iOS and Android