Step 1 – Visit SqLite – official download page. Search for “Precompiled Binaries for Windows” Section. Step 2 – Download the zip file called sqlite-dll-win32-x86-xxxx.zip or sqlite-dll-win64-x64-xxxx.zip depending upon your system configuration. Step 3 – Also download sqlite-tools-win32-x86-xxxx.zip fron tahe same place. Conda install -c anaconda sqlite Description SQLite is a self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine.It is the most used database engine in the world. Install-Package SQLite.Net-PCL Now right click on References in the solution explorer and select Add References. The following dialog will open. Select Extensions from the left pane under Universal Windows, check SQLite for Universal App Platform in the middle pane, and click Ok. How to install and use SQLite on Windows When one is developing in.NET with Visual Studio and other Microsoft tools, it is easy to lose sight of alternative solutions to common problems. MS does a competent job of creating a tightly integrated development tool chain, where available MS products (both free and paid) offer reasonable default. Quite a few students in my SQL course have asked me about how to install SQLite on Windows. On the surface, it seems pretty simple: download some files, unzi.
In many applications, there are certain types of data, which have some sort of relationship to each other. These types of data, which are difficult to store in a file, can be stored in a database.
If you are familiar with the types of databases, such as SQL server or Oracle databases in any application, then it is very easy to understand SQLite database.
SQLite is a software library that implements a self-contained, server less, zero-configuration, transactional SQL database engine.
Important features are −
SQLite is the most widely deployed database engine in the world.
The source code for SQLite is Open source.
It has had a large impact on game and mobile application development, due to its portability and small footprint.
The following are the advantages of SQLite −
To use SQLite in your Universal Windows Platform (UWP) applications, you need to follow the steps given below.
Create a new Universal Windows blank app with the name UWPSQLiteDemo.
Go to the Tools menu and select Extensions and Updates. The following dialog will open.
Now select the Online option and search for SQLite, from the left pane.
Download and Install SQLite for Universal App Platform.
Now, go to the Tools menu again and select NuGet Package Manager > Package Manager Console menu option as shown below.
Write the following command in the Package Manager Console and press enter to execute this command −
Now right click on References in the solution explorer and select Add References.
Select Extensions from the left pane under Universal Windows, check SQLite for Universal App Platform in the middle pane, and click Ok.
Now you are ready to go and use SQLite in your UWP applications.
You can create a database by using the following code.
To create a table you need to call CreateTable method with table name object.
You can insert the data into your table by using the following code.
Given below is the code to retrieve data from the table.
Let us understand how to create a database, a table and how to insert and retrieve the data from the database with the help of a simple example. We will be adding Name and age and then we will retrieve the same data from the table. Given below is the XAML code in which different controls are added.
Given below is the C# implementation for events and SQLite database.
When the above code is compiled and executed, you will see the following window.
Enter the Name and Age and click the Add button.
Now click on the Retrieve button. You will see the following data on the Text Block.
The ID field is a Primary Key and Auto Increment field, which is specified in the Customer class.