Share via


SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione 'SpatialDifference' canonica con l'argomento specificato, che deve presentare un tipo di risultato Edm.Geography o Edm.Geometry. Il tipo di risultato di spatialValue1 deve corrispondere al tipo di risultato di spatialValue2. Il tipo di risultato dell'espressione è lo stesso di spatialValue1 e spatialValue2.

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

Parametri

spatialValue1
DbExpression

Espressione che specifica il primo valore spaziale.

spatialValue2
DbExpression

Espressione che specifica il valore spaziale per il quale calcolare la differenza con spatialValue1.

Restituisce

Nuovo DbFunctionExpression che restituisce il valore geometrico che rappresenta la differenza tra spatialValue2 e spatialValue1.

Eccezioni

spatialValue1 spatialValue2

spatialValue1 spatialValue2

Si applica a