語言

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。

適用於