Tag: realm net

realm.xamarin抛出错误:不支持方法’Contains’。 ‘任意’相同

我正在编写一个在realm.xamarin linq查询中需要’WHERE IN’like子句的查询。 下面是我试过的查询: var IdsToMatch = observations.Select(x => x.Id) var results = from d in realm.All() where IdsToMatch.Any(p => p == d.Id) select d; 还尝试使用Contains : var results = from d in realm.All() where IdsToMatch.Contains(d.Id) select d; 但这会引发错误: The method ‘Contains’ is not supported The method ‘Any’ is not supported 这是什么解决方案? 编辑: 这是错误的堆栈跟踪: UNHANDLED […]