Udostępnij przez


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 wyniku elementu spatialValue1 musi być zgodny z typem wyniku spatialValue2. Typ wyniku wyrażenia jest taki sam jak typ spatialValue1 i spatialValue2.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression SpatialDifference(this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue1, System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue2);
static member SpatialDifference : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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ę z spatialValue1.

Zwraca

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

Dotyczy