Uwp Realm.Net Core2 String.Contains()失败?

Uwp Realm.Net Core2 String.Contains()失败?,uwp,realm,.net-core-2.0,Uwp,Realm,.net Core 2.0,为UWP应用程序使用领域数据库。我们正在从.NETCore 1.4升级到NETCore 2.0,而Realm String.Contains()函数已中断 问题如下: var collections = realm.All<Collection>().Where(c => c.Title.Contains(query, StringComparison.OrdinalIgnoreCase) || c.TextDescription.Contains(query,

为UWP应用程序使用领域数据库。我们正在从.NETCore 1.4升级到NETCore 2.0,而Realm String.Contains()函数已中断

问题如下:

var collections = realm.All<Collection>().Where(c =>
    c.Title.Contains(query, StringComparison.OrdinalIgnoreCase) ||
    c.TextDescription.Contains(query, StringComparison.OrdinalIgnoreCase));

这在Core 2中不受支持吗?

String.Contains()
方法应该在UWP中工作。您的操作系统构建版本和项目目标版本是什么?“Realm”的版本是什么?String.Contains()在UWP中工作。它不作为域查询/筛选器的一部分工作。虽然上述方法不起作用,但遍历集合并检查每个查询字符串确实起作用。操作系统版本:1803(17134.407)目标版本:1803(17134)分钟版本:秋季创建者更新(16299)领域版本:3.3.0如果是,您可以报告此问题。是的,他们建议先在此处发布,所以我们尝试了,但如果没有响应,我将尝试在那里发布
Exception thrown: 'System.NotSupportedException' in System.Private.CoreLib.dll
An exception of type 'System.NotSupportedException' occurred in 
System.Private.CoreLib.dll but was not handled in user code
The method 'Contains' is not supported