sqlite-net

Upgrading database on app update

风流意气都作罢 提交于 2019-12-12 08:16:59
问题 I am developing a Windows Store App that uses SQLite for Windows Runtime Extension and sqlite-net library to store data in a local SQLite database. This database is created in Windows.Storage.ApplicationData.Current.LocalFolder.Path path. Everything works like it should and I guess I will not have problems when submiting. Question 1 But what will happen when I change the app, submit again and the user updates it? Will database file be deleted? Will the user lost his data? Question 2 Will I be

SQLite.Net Won't Create In Win IoT Library

蹲街弑〆低调 提交于 2019-12-12 01:43:58
问题 I have been struggling to find a way of persisting an SQLite database on a Pi under Win IoT which can be accessed by different background applications (not concurrently). I thought I had the answer when I discovered Libraries (Music, Pictures, Videos - but perversely not Documents, without more work). I can create a text file in one app and write it to the Pictures library's default folder. I can then read the text file with another app. File.Exists returns true. Bingo (I thought)! However,

Access is denied debugging ASP.NET Core app referencing Sqlite running in IIS

旧城冷巷雨未停 提交于 2019-12-11 00:12:52
问题 The ASP.NET Core 2.2 project references Microsoft.EntityFrameworkCore.Sqlite (2.2.3) as a PackageReference . Debugging the app in IIS Express works fine, because of the elevated user process. Problem: Debugging the app in IIS throws an error Unable to load DLL 'e_sqlite3' or one of its dependencies: Access is denied How can I debug the app in IIS without laborious publishing steps? My analysis so far: while e_sqlite3.dll is found and loaded successfully in the folder %userprofile%\.nuget

Android - The type initializer for 'SQLite.SQLiteConnection' threw an exception. ---> System.DllNotFoundException: e_sqlite3

走远了吗. 提交于 2019-12-10 20:35:08
问题 On our Xamarin Android project we are trying to switch from sqlite-net to official sqlite-net-pcl package. However after this switch when creating a new SQLiteConnection I am getting following exception: The type initializer for 'SQLite.SQLiteConnection' threw an exception. ---> System.DllNotFoundException: e_sqlite3 Full exception: Xamarin caused by: android.runtime.JavaProxyThrowable: System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception.

Using SQLite-NET with UWP

拟墨画扇 提交于 2019-12-10 03:54:18
问题 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. 回答1: 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

SQLite.Net.Platform for Windows Phone 8.1

杀马特。学长 韩版系。学妹 提交于 2019-12-08 11:31:20
问题 I can't find any SQLite.Net.Platform library that works with Windows Phone 8.1 . These are not working: https://www.nuget.org/packages/SQLite.Net.Platform.WindowsPhone8/ https://www.nuget.org/packages/SQLite.Net.Platform.WinRT/ https://www.nuget.org/packages/SQLite.Net.Platform.Generic/ https://www.nuget.org/packages/SQLite.Net.Platform.Win32/ Any workaround? 回答1: WinRT platform is compatible with Windows Phone 8.1 projects. You can copy the sources to your platform specific project and

UWP App Upgrade Approach - Without Losing User Data

蓝咒 提交于 2019-12-08 09:03:37
I have a UWP app deployed to the Microsoft Store, and in use. It's a hobby project, available for free, and although I will update it now and then such updates will probably be infrequent. I'm about to release a new version to the store - it will be the first time I have done this. The app includes a SQLite database, which is created at runtime (so not part of the solution / source code). Update : the folder this ends up in is: C:\Users\...\AppData\Local\Packages\[Package ID]\LocalState I'd like to release a new version without having the user lose their existing data in the database. What's

UWP App Upgrade Approach - Without Losing User Data

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 08:57:06
问题 I have a UWP app deployed to the Microsoft Store, and in use. It's a hobby project, available for free, and although I will update it now and then such updates will probably be infrequent. I'm about to release a new version to the store - it will be the first time I have done this. The app includes a SQLite database, which is created at runtime (so not part of the solution / source code). Update : the folder this ends up in is: C:\Users\...\AppData\Local\Packages\[Package ID]\LocalState I'd

ManyToOne constraint not working

家住魔仙堡 提交于 2019-12-08 05:19:09
问题 I have very simple relationship, my model looks like this: public class Project { [PrimaryKey, AutoIncrement] public int ID { get; set; } public string Name { get; set; } [ForeignKey(typeof(User))] public int ProjectManagerID { get; set; } [ManyToOne] public User ProjectManager { get; set; } } public class User { public string Login { get; set; } [OneToMany] public List<Project> Projects { get; set; } } The problem is that I can easly save project, with its reference to user without saving

Windows Phone 8.1 Sqlite-net foreign key relationship

百般思念 提交于 2019-12-08 04:05:37
问题 I have installed sqlite-net from NuGet package in my windows phone universal app. But it does not contain foreign key relationship attribute between tables. I searched the web and found that SQLITE-Net Extenstions can handle this by using attributes, But it can only be installed on Windows 8.1 app not on windows Phone 8.1. How can use this extension in windows phone 8.1 or is there any other solution for foreign key relationships in sqlite? Thanks! 回答1: There exists a PCL version of this