sqlite-net

SQLite-Net Extensions - GetAllWithChildrenAsync not pulling everything

杀马特。学长 韩版系。学妹 提交于 2021-02-17 06:10:12
问题 I am trying to use SQLite-Net Extensions to create a Relational Database. I'm running into an issue when trying to pull the Term object from the database. It successfully pulls over its associated courses, but not the courses associated assessments and notes. I'm not sure if the problem lies in how I insert the objects into the database, how I pull the objects from the database, or how I have the objects attributes listed. I feel like the SQLite-Net Extensions documentation is extremely

How can I share local database of an existing app with a new app and make both work on it simultaneously?

一个人想着一个人 提交于 2021-02-08 10:51:01
问题 One of my client's inventory management project supports online as well as offline mode to manage huge inventory data and is built using Xamarin.Forms & sqlite-net. Now, the client wants to create another similar kind of app and wants us to use the same local db of the first app. The actual functionality he needs is that if I have data in one app then it can be shared to the second app and vice-versa. Like, if I'm logged into the first app then user automatically gets logged in to second app

How can I share local database of an existing app with a new app and make both work on it simultaneously?

会有一股神秘感。 提交于 2021-02-08 10:47:17
问题 One of my client's inventory management project supports online as well as offline mode to manage huge inventory data and is built using Xamarin.Forms & sqlite-net. Now, the client wants to create another similar kind of app and wants us to use the same local db of the first app. The actual functionality he needs is that if I have data in one app then it can be shared to the second app and vice-versa. Like, if I'm logged into the first app then user automatically gets logged in to second app

SQLite: Retrieve child element from object in list

ぐ巨炮叔叔 提交于 2021-01-27 21:03:03
问题 There is a Basket , which stores a List<Fruit> . Each Fruit has one Pip . If I store this relationship and retrieve it later, the ForeignKey PipId has a value, but the object Pip is null , despite I use CascadeRead . If I try to use CascadeOperation.All on FruitList I get Constraint at SQLite.PreparedSqlLiteInsertCommand.ExecuteNonQuery (System.Object[] source) [0x00116] in /Users/fak/Dropbox/Projects/sqlite-net/src/SQLite.cs:2507 at SQLite.SQLiteConnection.Insert (System.Object obj, System

Xamarin - SQLite.SQLiteException: Constraint using SQLite-net-pcl

五迷三道 提交于 2020-04-10 04:12:05
问题 I have recently moved both of my projects over to SQLite.net-pcl. I have ran into a number of problems so far and this is my latest. Everytime I run my app on iOS it crashes at some point and says SQLite.SQLiteException: Constraint. Android is running on the same PCL and will work first time around but afterwards gives me SQLite.SQLiteException: Constraint until I delete my application storage. Not sure what else to try here. Code example:- Object using System; namespace App.LocalObjects {

If there is a potential for multiple threads to do an insert / update into a SQLite database, should I always use lock?

末鹿安然 提交于 2020-01-11 11:58:31
问题 I have this code that uses lock: lock (l) { db2.BeginTransaction(); try { rc1 = db2.Execute(s); db2.Commit(); } catch (Exception ex) { db2.Rollback(); Crashes.TrackError(ex, new Dictionary<string, string> { {"RunExecute", "Exception"}, {"sql", s }, {"Device Model", DeviceInfo.Model }, }); throw; } } and other code that doesn't: db2.Insert(new QuizHistory() { QuizId = quiz, Cards = (App.viewablePhrases ?? GetViewablePhrases(MO.Quiz)).Count, Score = score, UtcNow = (int)Math.Truncate(DateTime

How to delete a relationship from many to many table in sqlite-net extension?

邮差的信 提交于 2019-12-25 11:59:19
问题 I've a many to many relationship between students and classes using SQLite-net Extensions: public class Students { [PrimaryKey, AutoIncrement] public int StudentId { get; set; } public string Name { get; set; } [ManyToMany(typeof(Students_Classes))] public List<Classes> Classes { get; set; } } public class Classes { [PrimaryKey, AutoIncrement] public int ClassId { get; set; } public string Name { get; set; } [ManyToMany(typeof(Students_Classes))] public List<Students> Students { get; set; } }

“SQLite.UAP.2015, Version=3.10.2”

纵然是瞬间 提交于 2019-12-25 04:03:38
问题 I need to find the "SQLite.UAP.2015, Version=3.10.2". as it had some features working that the current version does not as PRAGMA key. I tried rebuilding the download link from: http://sqlite.org/2016/sqlite-uwp-3130000.vsix as there is not any history in the webpage of previous dll's: http://sqlite.org/2015/sqlite-uap-3102000.vsix That does not work.How do I rebuild the link or Where can I find or can download the old Visual Studio Extension? Regards. 回答1: I found the link using the way back

“SQLite.UAP.2015, Version=3.10.2”

我只是一个虾纸丫 提交于 2019-12-25 04:03:24
问题 I need to find the "SQLite.UAP.2015, Version=3.10.2". as it had some features working that the current version does not as PRAGMA key. I tried rebuilding the download link from: http://sqlite.org/2016/sqlite-uwp-3130000.vsix as there is not any history in the webpage of previous dll's: http://sqlite.org/2015/sqlite-uap-3102000.vsix That does not work.How do I rebuild the link or Where can I find or can download the old Visual Studio Extension? Regards. 回答1: I found the link using the way back

UWP sqlite-net Async database access

北城以北 提交于 2019-12-25 03:13:13
问题 On my UWP app, I'm using sqlite-net to access the database. According to their GitHub Page I'm using Source Installation. Now I want to migrate to using the Nuget package (To get the latest updates) and they have mentioned getting the PCL package. When I add the PCL package I don't have Async operations available like it was on Source Installation. Please let me know how to proceed on this matter. When it comes to UWP and I want to use sqlite-net I see soo many nugets in VS 2015 Nuget Package