语言

SpatialEdmFunctions.SpatialLength(DbExpression) 方法

定义

创建一个 DbFunctionExpression 调用规范“SpatialLength”函数的指定参数,该函数必须具有 Edm.Geography 或 Edm.Geometry 结果类型。 表达式的结果类型为 Edm.Double。

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

参数

spatialValue
DbExpression

一个表达式,指定应从中检索长度的空间曲线值。

返回

一个新的 DbFunctionExpression,如果 spatialValue 不是曲线,则返回 spatialValue 的长度或 null。

适用于