Sqlite Plugin for Xamarin
It is a very intuitive Plugin to use a Sqlite database in your Xamarin and Windows projects.
It requires only 1 line of code.
What is this repository for?
You can learn more about Sqlite and this plugin on https://www.xamarinexpert.it/blog/sqlite-for-xamarin-made-easy
Available on Nuget: https://www.nuget.org/packages/MarcTron.Sqlite
Project website: https://www.xamarinexpert.it/Plugin/MTSql
To report any issue:
Install into your PCL/.NetStandard project and Client projects.
The nuget package will automatically install the sqlite-net-pcl package version 1.5.213
HOW TO USE IT
To get the connection to your Sql database you just need to add this line:
SQLiteConnection conn = MTSql.Current.GetConnection("yourdatabasename.db3");
in case you want to use an async connection you can use:
SQLiteAsyncConnection conn MTSql.Current.GetConnectionAsync("youdatabasename.db3");