Sdílet prostřednictvím


SpatialEdmFunctions.SpatialIntersects(DbExpression, DbExpression) Metoda

Definice

Vytvoří , DbFunctionExpression který vyvolá kanonické 'SpatialIntersects' funkce se zadanými argumenty, které musí mít každý typ výsledku Edm.Geography nebo Edm.Geometry. Typ výsledku musí spatialValue1 odpovídat typu výsledku .spatialValue2 Typ výsledku výrazu je Edm.Boolean.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialIntersects(System::Data::Common::CommandTrees::DbExpression ^ spatialValue1, System::Data::Common::CommandTrees::DbExpression ^ spatialValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialIntersects (this System.Data.Common.CommandTrees.DbExpression spatialValue1, System.Data.Common.CommandTrees.DbExpression spatialValue2);
static member SpatialIntersects : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialIntersects (spatialValue1 As DbExpression, spatialValue2 As DbExpression) As DbFunctionExpression

Parametry

spatialValue1
DbExpression

Výraz, který určuje první prostorovou hodnotu.

spatialValue2
DbExpression

Výraz, který určuje prostorovou hodnotu, se kterou se má porovnávat spatialValue1 průsečík.

Návraty

Nový DbFunctionExpression, který vrací logickou hodnotu označující, zda spatialValue1 a spatialValue2 protíná.

Výjimky

spatialValue1 spatialValue2

spatialValue1 spatialValue2

Platí pro