是否可以将ObservableCollection
转换/转换为EntityQuery
?
if (sender is InvokeOperation<List<DivisionHierarchy>>)
{
ObservableCollection<DivisionHierarchy> divisions =
new ObservableCollection<DivisionHierarchy>((sender as InvokeOperation<List<DivisionHierarchy>>).Value);
this.Load(query.ApplyTo(divisions),
lo => { callback(this.CreateResult(lo)); }, state); // Error
}
此方法query.ApplyTo
仅接受EntityQuery ....