SpatialEdmFunctions.SpatialIntersects(DbExpression, DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen SpatialIntersects med de angivna argumenten, som var och en måste ha resultattypen Edm.Geography eller Edm.Geometry. Resultattypen spatialValue1 måste matcha resultattypen spatialValue2för . Resultattypen för uttrycket är 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

Parametrar

spatialValue1
DbExpression

Ett uttryck som anger det första rumsliga värdet.

spatialValue2
DbExpression

Ett uttryck som anger det rumsliga värde som ska jämföras med spatialValue1 för skärningspunkt.

Returer

En ny DbFunctionExpression som returnerar ett booleskt värde som anger om spatialValue1 och spatialValue2 korsar varandra.

Undantag

spatialValue1 spatialValue2

spatialValue1 spatialValue2

Gäller för