共用方式為


SpatialEdmFunctions.GeographyPolygonFromText 方法

定義

建立一個使用指定引數叫用標準 'GeographyPolygonFromText' 函式的 DbFunctionExpression。 polygonWellKnownText 必須有字串結果類型,而 coordinateSystemId 必須有整數數值結果類型。 運算式的結果型別為 Edm.Geography。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression GeographyPolygonFromText(System.Data.Entity.Core.Common.CommandTrees.DbExpression polygonWellKnownText, System.Data.Entity.Core.Common.CommandTrees.DbExpression coordinateSystemId);
static member GeographyPolygonFromText : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Public Function GeographyPolygonFromText (polygonWellKnownText As DbExpression, coordinateSystemId As DbExpression) As DbFunctionExpression

參數

polygonWellKnownText
DbExpression

提供地理多邊形值之已知文字表示的運算式。

coordinateSystemId
DbExpression

運算式,提供地理多邊形值座標系統的座標系統 ID (SRID)。

傳回

根據指定值傳回新地理多邊形值的新 DbFunctionExpression。

適用於