本章节包含查询运算式中使用的内容关键字。
This section contains the contextual keywords used in query expressions.
查询是储存在查询变数中,并以查询运算式初始化。
A query is stored in a query variable and initialized with a query expression.
初始设定式通常会用在将来源资料规划为新资料型别的查询运算式中。
Initializers are typically used in query expressions when they project the source data into a new data type.
隐含型别阵列通常是在查询运算式中与匿名型别及物件和集合初始设定式一起使用。
Implicitly-typed arrays are usually used in query expressions together with anonymous types and object and collection initializers.
它提供文件物件模型(DOM)的记忆体中文件修改能力,而且支援LINQ查询运算式。
It provides the in-memory document modification capabilities of the document Object Model (DOM), and supports LINQ query expressions.
对于撰写查询的开发人员而言,LINQ最明显的“语言整合”部分就是它的查询运算式。
For a developer who writes queries, the most visible "language-integrated" part of LINQ is the query expression.
查询运算式经常使用匿名型别,此型别只能使用物件初始化设定式初始化,如下列宣告所示。
Query expressions make frequent use of anonymous types, which can only be initialized by using an object initializer, as shown in the following declaration.
在查询运算式中,若要将子运算式的结果用于后续子句,则储存子运算式的结果有时会十分有用。
In a query expression, it is sometimes useful to store the result of a sub-expression in order to use it in subsequent clauses.
但与字串运算式中,有没有强类型和查询运算式不能得到解决,直到运行时,这意味著您不会在此之前发现问题。
But with a string expression, there's no strong typing and that query expression doesn't get resolved until run time, which means that you won't discover problems until then.
运算式的求值时间很重要,因为它可能会延长查询的执行时间。
Evaluation time for the expression is important, because it lengthens the query execution time.
如果一个运算式中使用多个算术运算子,查询和检视表设计工具会依照以下的运算子优先顺序处理运算式。
If you use more than one mathematical operator in an expression, the Query and View Designer processes the expression according to the following operator precedence.
在建构查询的运算式时可以使用各种运算子,包括数学和内容运算子。
You can use a variety of operators in constructing expressions for your query, including mathematical and text operators.
您可以使用自订运算式取代汇总查询中任何位置的汇总函式。
You can use custom expressions in place of aggregate functions anywhere in an aggregate query.
复杂度较低的提供者可能只会在代表查询的运算式树状架构中检查一个方法呼叫运算式,并让查询的其馀逻辑在其他地方处理。
A less complex provider might examine only one method call expression in the expression tree that represents the query, and let the remaining logic of the query be handled elsewhere.
复杂度较低的提供者可能只会在代表查询的运算式树状架构中检查一个方法呼叫运算式,并让查询的其馀逻辑在其他地方处理。
A less complex provider might examine only one method call expression in the expression tree that represents the query, and let the remaining logic of the query be handled elsewhere.
应用推荐