SpatialEdmFunctions.SpatialEquals(DbExpression, DbExpression) 方法

定义

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialEquals(System::Data::Common::CommandTrees::DbExpression ^ spatialValue1, System::Data::Common::CommandTrees::DbExpression ^ spatialValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialEquals (this System.Data.Common.CommandTrees.DbExpression spatialValue1, System.Data.Common.CommandTrees.DbExpression spatialValue2);
static member SpatialEquals : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialEquals (spatialValue1 As DbExpression, spatialValue2 As DbExpression) As DbFunctionExpression

参数

spatialValue1
DbExpression

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

spatialValue2
DbExpression

指定应与 spatialValue1 比较是否相等的空间值的表达式。

返回

一个新的 DbFunctionExpression,它返回指示 spatialValue1spatialValue2 是否相等的布尔值。

例外

spatialValue1 spatialValue2

spatialValue1 spatialValue2

适用于