SpatialEdmFunctions.Measure(DbExpression) 方法

定义

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

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

参数

spatialValue
DbExpression

一个表达式,从应检索的度量值 (M) 坐标的值中指定空间点的值。

返回

一个新的 DbFunctionExpression,如果 spatialValue 不是点,则返回 spatialValue 度量值或 null。

适用于