Android SDK Azure移动应用程序-SQL数据库表查询列表错误:“无法解析方法'get()'”

时间:2018-12-08 19:07:37

标签: android database azure sdk

我正在尝试根据示例文档在Azure移动应用中查询表。我有一张序列号和MAC地址表,并且正在编写一种查询序列号并返回MAC地址的方法。

我在最后一个.get()上得到了错误;

public String serialToMac(String serial) {
    List<Router> result = routerTable
            .where()
            .field("serial").eq(serial)
            .select("mac")
            .execute()
            .get();
    return result.get(0).toString();

我似乎无法确定是什么原因造成的。非常感谢您的帮助!

用于移动应用程序服务客户端库的Microsoft Azure文档(带有数据库例程): (https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-android-how-to-use-client-library

0 个答案:

没有答案