SpatialEdmFunctions.SpatialElementCount(DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen SpatialElementCount med det angivna argumentet, som måste ha resultattypen Edm.Geography eller Edm.Geometry. Resultattypen för uttrycket är 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

Parametrar

spatialValue
DbExpression

Ett uttryck som anger det geografi- eller geometrisamlingsvärde som antalet element ska hämtas från.

Returer

En ny DbFunctionExpression som antingen returnerar antalet element i spatialValue eller null om spatialValue det inte är en samling.

Undantag

spatialValue

spatialValue

Gäller för