语言

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。

适用于