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.
精彩评论