共用方式為


SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) 方法

定義

建立會使用指定之引數叫用標準 'SpatialDifference' 函式的 DbFunctionExpression,其中每個引數都必須具有 Edm.Geography 或 Edm.Geometry 結果型別。 spatialValue1 的結果類型必須符合 spatialValue2 的結果類型。 運算式的結果類型與 spatialValue1 和 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

參數

spatialValue1
DbExpression

指定第一個空間值的運算式。

spatialValue2
DbExpression

運算式,指定要計算其與 spatialValue1 之間差異的空間值。

傳回

傳回 geometry 值的新 DbFunctionExpression,代表 spatialValue2 與 spatialValue1 的差異。

適用於