Hello,
Welcome to our Microsoft Q&A platform!
Try creating another table to place the selected data.
public class TableA
{
[PrimaryKey]
public int TableA_ID { get; set; }
public string TableA_Name { get; set; }
public string Notes { get; set; }
}
public class TableB
{
[PrimaryKey]
public int TableB_ID { get; set; }
public string TableB_Name { get; set; }
public string Description { get; set; }
}
public class TheItem
{
public int TableA_ID { get; set; }
public string TableA_Name { get; set; }
public string Notes { get; set; }
public int TableB_ID { get; set; }
public string TableB_Name { get; set; }
public string Description { get; set; }
}
Then query the data from the two tables with the following code.
public Task<List<TheItem>> GetSelectedItems()
{
return Database.QueryAsync<TheItem>(@"SELECT * FROM TableA,TableB WHERE TableA.TableA_ID = TableB.TableB_ID;");
}
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.