我正在尝试根据示例文档在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)