SpatialEdmFunctions.SpatialIntersection(DbExpression, DbExpression) 方法

定义

创建 DbFunctionExpression,它使用指定参数(每个参数必须具有一个 Edm.Geography 或 Edm.Geometry 结果类型)调用规范 'SpatialIntersection' 函数。 spatialValue1 的结果类型必须与 spatialValue2 的结果类型匹配。 表达式的结果类型与 spatialValue1 和 spatialValue2 的类型相同。

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

参数

spatialValue1
DbExpression

一个表达式,指定第一个空间值。

spatialValue2
DbExpression

指定应计算与 spatialValue1 的交集的空间值的表达式。

返回

一个新的 DbFunctionExpression,返回表示 spatialValue1 和 spatialValue2 交集的空间值。

适用于