共用方式為


SpatialEdmFunctions.SpatialUnion(DbExpression, DbExpression) 方法

定義

建立會使用指定之引數叫用標準 'SpatialUnion' 函式的 DbFunctionExpression,其中每個引數都必須具有 Edm.Geography 或 Edm.Geometry 結果型別。 spatialValue1 的結果類型必須符合 spatialValue2 的結果類型。 運算式的結果類型與 spatialValue1 和 spatialValue2 的類型相同。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression SpatialUnion (this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue1, System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue2);
static member SpatialUnion : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialUnion (spatialValue1 As DbExpression, spatialValue2 As DbExpression) As DbFunctionExpression

參數

spatialValue1
DbExpression

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

spatialValue2
DbExpression

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

傳回

傳回 spatialValue1 和 spatialValue2 等位之空間值的新 DbFunctionExpression。

適用於