SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje kanoniczną funkcję "SpatialDifference" z określonymi argumentami, które muszą mieć typ wyniku Edm.Geography lub Edm.Geometry. Typ spatialValue1 wyniku musi być zgodny z typem spatialValue2wyniku . Typ wyniku wyrażenia jest taki sam jak typ spatialValue1 i 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

Parametry

spatialValue1
DbExpression

Wyrażenie określające pierwszą wartość przestrzenną.

spatialValue2
DbExpression

Wyrażenie określające wartość przestrzenną, dla której należy obliczyć różnicę spatialValue1 .

Zwraca

Nowa funkcja DbFunctionExpression zwracająca wartość geometryczną reprezentującą różnicę parametru spatialValue2 .spatialValue1

Wyjątki

spatialValue1 spatialValue2

spatialValue1 spatialValue2

Dotyczy