开发者

Silverlight DomainDataSource and FilterDescriptors (Entire query loaded from server THEN filtered in client?)

开发者 https://www.devze.com 2023-03-21 12:00 出处:网络
I need to know if DomainDataSource with filterdescriptors added will first load ALL the data from the client and then filter on the client, or do the filter descriptors cause the domaindatasource to c

I need to know if DomainDataSource with filterdescriptors added will first load ALL the data from the client and then filter on the client, or do the filter descriptors cause the domaindatasource to create a query with filter added on (.Where(e=>..)) which is then loaded from the server.

In other words: Is there a difference between these two:

<riaControls:Domai开发者_运维百科nDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my1:NursingHomeDetail, CreateList=true}" Height="0" LoadedData="nursingHomeSummaryDomainDataSource_LoadedData" Name="nursingHomeDomainDataSourceByPin" QueryName="GetNursingHomeQuery" >
    <riaControls:DomainDataSource.DomainContext>
        <my:NursingHomeContext />
    </riaControls:DomainDataSource.DomainContext>
    <riaControls:DomainDataSource.QueryParameters>
        <riaControls:Parameter ParameterName="pin" Value="{Binding ElementName=pinComboBox, Path=SelectedValue}" />
    </riaControls:DomainDataSource.QueryParameters>
</riaControls:DomainDataSource>


It happens server-side. The filters change the DomainDataSource query client side, which is serialized to server-side for execution.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号