Silverlight 和 RIA 服务 - 数据源窗口不显示任何内容
因此,按照一些示例,我创建了一个启用了 RIA 服务的新 Silverlight 导航应用程序。构建实体模型,添加领域服务 并测试我是否可以向客户端获取一些数据。这很好用。
但许多示例展示了他们如何使用数据源窗口 只需将数据字段拖到窗口上...但在我的例子中,数据源窗口中没有数据源。
在演示和混音会话中,这只是突然出现的:p 无论如何,我怎样才能让我的Web项目中定义的DomainService显示出来 作为数据源窗口中的数据源之一?
So following some of the examples out there I created a new Silverlight Navigation application with RIA services enabled. Built the entity model, added a domain service
and tested whether or not I could get some data to the client. This works fine.
But many of the examples show off how they use the Data Sources window
to simply drag data fields onto a window... in my case however there are no data sources in the data sources window.
In the demo's and mix sessions this just appears out of the blue :p
Anyway how can I get my DomainService defined in the web project to show up
as one of the data sources in the data sources window?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否正在使用 VS2010 和 Silverlight 的新候选版本?
此外,数据源视图仅当您位于主编辑器窗口中的 XAML 页面上时才起作用。
Are you using the new Release Candidate of VS2010 and Silverlight?
Also, the data sources view will only work when you are on a XAML page in the main editor window.
这是以前版本中的一个已知错误,可使用以下解决方法:
http://blogs.msdn.com/vsdata/archive/2010/04/13/workaround-to-data-source- window-not-populate-ria-services-domain-context-objects.aspx
基本上,当您在 c:\ 以外的任何驱动器上安装 VS2010 时,就会发生这种情况。
该问题已在 Ria Services 1.0 中得到解决:-)
This was a known bug in the previous versions with the following workaround:
http://blogs.msdn.com/vsdata/archive/2010/04/13/workaround-to-data-source-window-not-populating-ria-services-domain-context-objects.aspx
Basically this happened when you installed VS2010 on any drive other than c:\
The issue has been resolved in Ria Services 1.0 :-)