
上QQ阅读APP看书,第一时间看更新
Adding the SQLite NuGet package
To access SQLite in this project, we need to add a NuGet package called sqlite-net-pcl to the .NET Standard library project. To do this, right-click on the Dependencies item under the DoToo project node of the Solution and click Manage NuGet Packages:

You might notice that the NuGet package is suffixed with -pcl. This is an example of what happens when naming conventions go wrong. This package actually supports .NET Standard 1.0, even though the name says Portable Class Library ( PCL), which was the predecessor to .NET Standard.
This brings up the NuGet Package Manager:

- Click Browse and enter sqlite-net-pcl in the search box
- Select the package by Frank A. Krueger and click Install
Wait for the installation to complete. We'll then add some code to the TodoItem class and the repository.