after googling for a while, i haven't seen an example on how to create a table with a foreign key with the nuget sqlite-net-pcl for my xamarin.forms app.
Let's say i have GroupTask.cs in which i storethe initial GroupTask:
[Table("GroupTask")]
public class GroupTask
{
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
public string Topic { get; set; }
public DateTime Date { get; set; }
}
Now i want to create Task.cs which will be used in each GroupTask ( GroupTask contains multiple task). But how do i set it up if possible ?
[Table("Task")]
public class Task
{
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
public string Name { get; set; }
public string Duration { get; set; }
}
Is it possible with sqlite-net-pcl ? Thanks.