Visual Studio 2010 中缺少数据源选项卡

发布于 2024-12-27 14:20:30 字数 467 浏览 3 评论 0原文

我开始阅读《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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

策马西风 2025-01-03 14:20:30

如果打开了 MainWindow.xaml,“数据源”选项卡通常位于“工具箱”选项卡旁边。

在此处输入图像描述

如果没有出现,请转到“查看”->“工具栏,然后打开数据设计工具栏。单击显示数据源按钮。

在此处输入图像描述

或者仅使用 Shift + Alt + D

If you have MainWindow.xaml open, the DataSources tab is normally right next to the Toolbox tab.

enter image description here

If it does not appear there, go to View -> Toolbars, and turn on the Data Design toolbar. Click the Show Data Sources button.

enter image description here

Or just use Shift + Alt + D

苯莒 2025-01-03 14:20:30

创建空项目时,我可以按如下方式访问数据源:

  • 在解决方案资源管理器中选择一个项目。 (不是解决方案!)
  • 菜单栏上的“数据”菜单现在允许您访问该项目的数据源以及其他数据源相关选项。

When I create an empty project, I am able to access Data Sources as follows:

  • Select a project in the solution explorer. (Not a solution!)
  • The 'Data' menu on the menu bar now allows you to access the data sources for this project, along with other Data Source related options.
微凉徒眸意 2025-01-03 14:20:30

好的,我有一个解决方法。由于某种原因,它仅在您执行 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.

几度春秋 2025-01-03 14:20:30

在对象出现在树视图中之前,您可能需要构建包含对象的项目。

巴勃罗

You may need to build the project that contains your objects before the objects appear in the tree view.

Pablo

青衫负雪 2025-01-03 14:20:30

您可以在“视图”->“视图”中找到此工具栏选项。其他窗口 ->数据源或使用

Shift + Alt + D

在此处输入图像描述

You can find this toolbar option in View -> Other Windows -> Data Sources or use

Shift + Alt + D

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文