Visual Studio 2010 中缺少数据源选项卡
我开始阅读《Pro Business Applications with Silverlight 4》,我的 Visual Studio 2010 遇到以下问题,
我找不到此处提到的数据源选项卡页:
当您在 Visual Studio 中打开“数据源”窗口时,您将 发现一个数据源有 已为 RIA 服务创建的每个域上下文创建 在 Silverlight 项目中,以及它们在下面公开的实体 (如图6-2所示)。将其中之一拖放到 您的设计界面将创建一个 DomainDataSource 控件和一个 绑定控件来显示数据。
我知道网站和 Web 应用程序项目中故意禁用了数据源窗口和数据菜单,但我的项目是 Silverlight 业务应用程序。
有人可以告诉我在哪里可以找到这个窗口或者我应该做什么来创建 DomainDataSource 控件和绑定控件?
谢谢!
I started reading the Pro Business Applications with Silverlight 4 and I'm having the following problem here with my visual studio 2010
I can't find the data sources tab page as mentioned here:
When you open the Data Sources window in Visual Studio, you will
find that a data source has
already been created for each domain context created by RIA Services
in the Silverlight project, with the entities that they expose beneath
them (as shown in Figure 6-2). Dragging and dropping one of these onto
your design surface will create both a DomainDataSource control and a
bound control to display the data.
I know that the Data Sources window and Data menu are intentionally disabled in Websites and Web Application Projects but my project is a Silverlight business application.
Can someone tell where i can find this window or what should i do to create the DomainDataSource control and the bound control?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果打开了 MainWindow.xaml,“数据源”选项卡通常位于“工具箱”选项卡旁边。
如果没有出现,请转到“查看”->“工具栏,然后打开数据设计工具栏。单击显示数据源按钮。
或者仅使用 Shift + Alt + D
If you have MainWindow.xaml open, the DataSources tab is normally right next to the Toolbox tab.
If it does not appear there, go to View -> Toolbars, and turn on the Data Design toolbar. Click the Show Data Sources button.
Or just use Shift + Alt + D
创建空项目时,我可以按如下方式访问数据源:
When I create an empty project, I am able to access Data Sources as follows:
好的,我有一个解决方法。由于某种原因,它仅在您执行 Silverlight 项目时才会显示。所以我开始了一个空白的解决方案,添加了一个 silverlight 项目。宾果 - 有数据源窗口。现在,添加您真正需要的任何项目。
OK, i got a workaround. For some reason, it only shows up if you do a Silverlight project. So I started a blank solution, added a silverlight project. Bingo - there is the Data Source window. Now, add whatever project you really need.
在对象出现在树视图中之前,您可能需要构建包含对象的项目。
巴勃罗
You may need to build the project that contains your objects before the objects appear in the tree view.
Pablo
您可以在“视图”->“视图”中找到此工具栏选项。其他窗口 ->数据源或使用
Shift + Alt + D
You can find this toolbar option in View -> Other Windows -> Data Sources or use
Shift + Alt + D