Udostępnij za pośrednictwem


SpatialEdmFunctions.SpatialElementCount(DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje kanoniczną funkcję "SpatialElementCount" z określonym argumentem, który musi mieć typ wyniku Edm.Geography lub Edm.Geometry. Typ wyniku wyrażenia to 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

Parametry

spatialValue
DbExpression

Wyrażenie określające wartość geografii lub kolekcji geometrycznej, z której należy pobrać liczbę elementów.

Zwraca

Nowa funkcja DbFunctionExpression zwracająca liczbę elementów w spatialValue elem null lub , jeśli spatialValue nie jest kolekcją.

Wyjątki

spatialValue

spatialValue

Dotyczy