共用方式為


SpatialEdmFunctions.GeometryFromText 方法

定義

多載

GeometryFromText(DbExpression)

建立會使用指定引數叫用標準 'GeometryFromText' 函式的 DbFunctionExpression,其中的引數必須具有字串結果型別。 運算式的結果型別為 Edm.Geometry。 其值是基礎提供者的預設座標系統 ID (SRID)。

GeometryFromText(DbExpression, DbExpression)

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

GeometryFromText(DbExpression)

建立會使用指定引數叫用標準 'GeometryFromText' 函式的 DbFunctionExpression,其中的引數必須具有字串結果型別。 運算式的結果型別為 Edm.Geometry。 其值是基礎提供者的預設座標系統 ID (SRID)。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression GeometryFromText (System.Data.Entity.Core.Common.CommandTrees.DbExpression wellKnownText);
static member GeometryFromText : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Public Function GeometryFromText (wellKnownText As DbExpression) As DbFunctionExpression

參數

wellKnownText
DbExpression

提供幾何值之已知文字表示的運算式。

傳回

根據指定值傳回新幾何值的新 DbFunctionExpression。

適用於

GeometryFromText(DbExpression, DbExpression)

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

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

參數

wellKnownText
DbExpression

提供幾何值之已知文字表示的運算式。

coordinateSystemId
DbExpression

運算式,提供幾何值座標系統的座標系統 ID (SRID)。

傳回

根據指定值傳回新幾何值的新 DbFunctionExpression。

適用於