SpatialEdmFunctions.GeographyFromText 方法

定義

建立會叫用標準 'GeographyFromText' 函式的 DbFunctionExpression

多載

GeographyFromText(DbExpression)

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

GeographyFromText(DbExpression, DbExpression)

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

GeographyFromText(DbExpression)

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

C#
public static System.Data.Common.CommandTrees.DbFunctionExpression GeographyFromText (System.Data.Common.CommandTrees.DbExpression wellKnownText);

參數

wellKnownText
DbExpression

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

傳回

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

例外狀況

wellKnownText

wellKnownText

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GeographyFromText(DbExpression, DbExpression)

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

C#
public static System.Data.Common.CommandTrees.DbFunctionExpression GeographyFromText (System.Data.Common.CommandTrees.DbExpression wellKnownText, System.Data.Common.CommandTrees.DbExpression coordinateSystemId);

參數

wellKnownText
DbExpression

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

coordinateSystemId
DbExpression

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

傳回

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

例外狀況

wellKnownText coordinateSystemId

wellKnownText coordinateSystemId

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1