SpatialEdmFunctions.SpatialDimension(DbExpression) 方法

定义

创建 DbFunctionExpression,它使用指定参数(该参数必须具有 Edm.Geography 或 Edm.Geometry 结果类型)调用规范“SpatialDimension”函数。 该表达式的结果类型为 Edm.Int32。

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

参数

spatialValue
DbExpression

一个表达式,指定一个数值,应通过该值检索 Dimension 值。

返回

从 spatialValue 返回 Dimension 值的新 DbFunctionExpression。

适用于