SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) 方法

定义

创建一个 DbFunctionExpression,它使用指定的参数调用规范形式的 'SpatialElementAt' 函数。 第一个参数必须具有 Edm.Geography 或 Edm.Geometry 结果类型。 第二个参数必须具有整数数值结果类型。 表达式的结果类型与 spatialValue 的结果类型相同。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression SpatialElementAt (this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression indexValue);
static member SpatialElementAt : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialElementAt (spatialValue As DbExpression, indexValue As DbExpression) As DbFunctionExpression

参数

spatialValue
DbExpression

一个表达式,指定地理或几何图形集合值。

indexValue
DbExpression

一个表达式,在几何图形或地理集合中指定要检索的元素的位置。

返回

一个新的 DbFunctionExpression,它返回 spatialValue 中 indexValue 位置处的集合元素;如果 spatialValue 不是集合,则返回 null。

适用于