English 中文(简体)
LoadedData与Ria Services相关物体的累积结果
原标题:LoadedData accumulate results with related objects in Ria Services

I m与SL4 & .Net Ria Services合作。 我的数据模型通过该<代码><ria Control/>,安装了0.* 称作“装置”的财产。 我获得所有装置及其特殊类型的装置。

<riaControls:DomainDataSource Name="deviceDomainDataSource" QueryName="getDevicesWithOpenStateQuery" .../>

在客户方面,有2个标有显示装置及其装置的插图。

 <ListBox ItemsSource="{Binding ElementName=deviceDomainDataSource, Path=Data}">
      <ListBox x:Name="SubRowListBox" ItemsSource="{Binding DevicesAndStates}">
      </ListBox>
 </ListBox

问题是,在服务器方面,该电梯把所有带有特定类型(只属于特定类型)的装置回收,但在客户方面则没有。 在客户方面

 private void deviceDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e)
    {

        if (e.HasError)
        {
            System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
            e.MarkErrorAsHandled();
        }
        else
        {

        }
    }

e. 在设施中,我得到所有装置正确,但看着他的设备和装置。 并且(在先前的询问中,特别类型的查询和所有先前类型的查询)。 因此,装置的装置清单箱由于向下方的询问而累积。

问题回答

你们可以通过洛德行动的所有实体获得新装的参考实体。 采用一些准则,你只能把这种过滤过滤到与所涉最高层装置有关的实体。





相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签