Welcome to Xamarin Guy Show Blog

Keep updated for latest and Greatest Posts from Xamarin guy

Dotnet MAUI SQLite Database basic CRUD operation

Add this 2 plugins inside the app

https://www.nuget.org/packages/SQLitePCLRaw.bundle_green/

https://www.nuget.org/packages/sqlite-net-pcl/

MainPage.xaml

MainPage.xaml.cs

ClassRoomViewModel.cs

Now let’s create a item or the table that needs to be inserted to database
ClassRoomItem.cs

Now creating the database
ClassRoomDatabase.cs

Finally App.xaml.cs

Here’s the full source code

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.