sqlite-net-pcl

How to add/ load/ delete items from a foreign key table in xamarin forms with sqlite-net-pcl and sqliteExtensions

醉酒当歌 提交于 2020-07-10 10:26:30
问题 Hi i have this two tables ( not sure if they are written correctly) an agenda can contain many Tasks, my question is how do i write the methods to add/delete/load my tasks in my agenda, i am not sure how this work when you have a foreign key ? Thank you. Agenda.cs in the Models folder [Table("Agenda")] public class Agenda { [PrimaryKey, AutoIncrement] public int ID { get; set; } public string Topic { get; set; } public string Duration { get; set; } public DateTime Date { get; set; }

The type initializer for 'SQLite.SQLiteConnection' threw an exception

浪子不回头ぞ 提交于 2020-03-18 11:36:53
问题 I'm trying to implement an incredibly basic use of SQLite. I have a Button and an EditText . I want to store the contents of the EditText OnClick . I'm following this: https://developer.xamarin.com/guides/android/application_fundamentals/data/part_3_using_sqlite_orm/ and https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/databases/ I cannot get passed the following starting code without getting the subsequent errors: var db = new SQLiteConnection (dbPath); Error: The

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

UWP sqlite-net Async database access

左心房为你撑大大i 提交于 2019-12-25 03:13:12
问题 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