【发布时间】:2019-08-06 15:45:52
【问题描述】:
该项目是一个使用 SqLite 的 xamarin 形式的测验应用程序,在代码中需要有一种方法来加载问题,我将展示它们在 Azure 中是如何做到的,我需要在 SqLite 中做同样的事情。我还包含一个指向使用 Azure 的 xamarin 测验的源代码的链接。 [1]:https://github.com/garudaslap/xamarinquiz
public async Task LoadQuestions()
{
IsLoading = true;
MobileServiceClient client = AppSettings.MobileService;
IMobileServiceTable<XamarinQuiz> xamarinQuizTable =
client.GetTable<XamarinQuiz>();
try
{
QuestionList = await xamarinQuizTable.ToListAsync();
}
catch (Exception exc)
{
}
IsLoading = false;
ChooseNewQuestion();
}
【问题讨论】:
标签: sqlite-net-pcl