SpatialEdmFunctions.SpatialElementCount(DbExpression) 方法

定义

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

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

参数

spatialValue
DbExpression

一个表达式,指定应从中检索元素数的地理或几何图形集合值。

返回

一个新的 DbFunctionExpression,它返回元素 spatialValue 的数目,或者 null 不是 spatialValue 集合。

例外

spatialValue

spatialValue

适用于