Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SQLite-NET with UWP

I downloaded the package from NuGet and still there's no SQLite.cs neither SQLiteAsync.cs added to the project, If SQLite-NET is still not supporting VS 2015 RTM, Any possible alternatives?

Note that I tried SQLite.NET-PCL and still the same problem.

like image 793
Kinani Avatar asked Aug 06 '15 07:08

Kinani


People also ask

How do I connect SQLite to a Windows application?

Open your Visual Studio and select new project and in Visual C# select "Windows Forms Application" and provide the name as Sqlite and click on OK. Right-click on your application and select "Open folder in your window application" and then go to: BIN -> Debug and extract your application here.

Can I use SQLite in web application?

SQLite will normally work fine as the database backend to a website. But if the website is write-intensive or is so busy that it requires multiple servers, then consider using an enterprise-class client/server database engine instead of SQLite.

Does SQLite support .NET core?

This tutorial uses SQLite because it runs on all platforms that . NET Core supports. For a list of available providers, see Database Providers.


1 Answers

SQLite.NET-PCL shouldn't add those two classes directly to your project files.

Did you download the right SQLite.NET-PCL via NuGet? (there's a huge mess when you search for SQLite.NET on NuGet so it's easy to get confused and install the wrong one).

The right SQLite.NET PCL library

Did you install the SQLite VSIX package for Universal App Platform development using Visual Studio 2015. Did you add it to your project references?

Have you tried reading my blog post on this topic: Using SQLite in Windows 10 Universal apps?

Everything should work OK with VS 2015 RTM.

like image 75
Igor Ralic Avatar answered Sep 23 '22 06:09

Igor Ralic