ObservableCollection转换为EntityQuery?

时间:2012-04-02 16:13:38

标签: c# wcf entity-framework-4 wcf-ria-services observablecollection

是否可以将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 ....

0 个答案:

没有答案