关于静态跨度的问题 [英] A question on static spans

查看:76
本文介绍了关于静态跨度的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该查询基于三个相关实体中的两个(订单,托运人,Northwind中的客户)。客户未包含在参数查询中。使用"管理包含的数据"链接包含或排除数据似乎不会对返回的结果进行任何更改
(事实上,尽管客户已被排除,但客户的回复速度很慢)。还有其他事情要设置吗?


mysorian

The query is based on two out of three related entities(Orders, shippers, customers in the Northwind). Customers is not included in the parametric query. Including or excluding data using the Manage Included Data link does not appear to make any changes to the returned results (in fact Customer was returned slowly although it was excluded). Is there any thing else to be set?


mysorian

推荐答案

如果您在屏幕上显示相关客户,那么LightSwitch将始终尝试加载它以便在屏幕上显示信息,无论它是否包含在初始查询中。 如果客户未包含在初始
查询中,则LightSwitch将执行单独的查询以加载相关信息。

If you have the related Customers displayed on the screen, then LightSwitch will always try to load it in order to display the information on the screen, whether it is Included in the initial query or not.  If Customer isn't Included in the initial query, then LightSwitch will perform a separate query to load the related information.

如果您希望加载客户信息,包括它在Manage Included Data链接上将完成此操作。 您是否可以使用SQL事件探查器来验证正在执行的SQL查询?

If you want the Customer information to be loaded, Including it on the Manage Included Data link will accomplish this.  Can you use SQL Profiler to verify the SQL query that is being executed?

如果您不希望加载客户信息,则必须将其从显示在。屏幕 在屏幕设计器中找到绑定到Customer属性的内容项并将其删除。

If you don't want the Customer information to be loaded, then you have to remove it from being shown on the screen.  Find the Content Item in the screen designer that binds to a Customer property and delete it.

我希望我已回答了您的问题。 如果我没有,你能解释一下你想要完成的事情吗? 您是否尝试仅使用发货人信息显示订单屏幕? 或托运人
客户信息? 从您的问题中不清楚您是否希望显示客户信息。

I hope I answered your question.  If I didn't, can you explain a little more on what you're trying to accomplish?  Are you trying to show an Orders screen with just Shipper information?  Or Shipper and Customer info?  It wasn't clear from your question whether you want Customer information to be shown or not.


这篇关于关于静态跨度的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆