SpatialEdmFunctions.SpatialCrosses(DbExpression, DbExpression) 方法

定义

创建 DbFunctionExpression,它使用指定参数(每个参数必须具有 Edm.Geography 结果类型)调用规范 'SpatialCrosses' 函数。 表达式的结果类型为 Edm.Boolean。

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

参数

geometryValue1
DbExpression

一个表达式,指定第一个几何值。

geometryValue2
DbExpression

指定应与 geometryValue1 进行比较的几何值的表达式。

返回

一个新的 DbFunctionExpression,返回一个布尔值,该值指示 geometryValue1 是否交叉 geometryValue2 相交。

适用于