开发者

Unable to get data from RIA Service

开发者 https://www.devze.com 2022-12-31 16:05 出处:网络
I\'m trying the SL4 and RIA Services out. I followed the common tutorials available using SL4 Business template but I don\'t know why when I run the app I won\'t get any results from the service.

I'm trying the SL4 and RIA Services out. I followed the common tutorials available using SL4 Business template but I don't know why when I run the app I won't get any results from the service.

I have added a ADO.NET model which is connected to Northwind database and has only Employees table in it and also created its domain service.

<sdk:DataGrid AutoGenerateColumns="False" Name="dataGrid1" MinHeight="100" ItemsSource="{Binding ElementName=employeeDomainDataSource, Path=Data}" />
            <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my1:Employee, CreateList=true}" Height="0" LoadedData="employeeDomainDataSource_Load开发者_如何学PythonedData" Name="employeeDomainDataSource" QueryName="GetEmployeesQuery" Width="0">
                <riaControls:DomainDataSource.DomainContext>
                    <my:NorthwindContext />
                </riaControls:DomainDataSource.DomainContext>
            </riaControls:DomainDataSource>


Ok. My fault! I have not set the AutoGenerateColumns property to true

0

精彩评论

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