SpatialEdmFunctions.AsText(DbExpression) 方法

定义

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ AsText(System::Data::Common::CommandTrees::DbExpression ^ spatialValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AsText(this System.Data.Common.CommandTrees.DbExpression spatialValue);
static member AsText : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AsText (spatialValue As DbExpression) As DbFunctionExpression

参数

spatialValue
DbExpression

一个表达式,指定应从中生成已知文本表示形式的空间值。

返回

一个新的 DbFunctionExpression,返回已知的文本表示形式 spatialValue

例外

spatialValue

spatialValue

适用于