语言

DbSpatialServices.SpatialEquals 方法

定义

重载

名称 说明
SpatialEquals(DbGeography, DbGeography)

确定两个给定 DbGeography 值是否在空间上相等。

SpatialEquals(DbGeometry, DbGeometry)

确定两个给定 DbGeometry 值是否在空间上相等。

SpatialEquals(DbGeography, DbGeography)

确定两个给定 DbGeography 值是否在空间上相等。

public abstract bool SpatialEquals(System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
abstract member SpatialEquals : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> bool
Public MustOverride Function SpatialEquals (geographyValue As DbGeography, otherGeography As DbGeography) As Boolean

参数

geographyValue
DbGeography

要比较相等的第一个地理值。

otherGeography
DbGeography

要比较相等的第二个地理值。

返回

如果 geographyValue 在空间上等于 otherGeography,则为 true;否则为 false。

例外

geographyValue 或 otherGeography 为 null。

geographyValue 或 otherGeography 与此空间服务实现不兼容。

适用于

SpatialEquals(DbGeometry, DbGeometry)

确定两个给定 DbGeometry 值是否在空间上相等。

public abstract bool SpatialEquals(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
abstract member SpatialEquals : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> bool
Public MustOverride Function SpatialEquals (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Boolean

参数

geometryValue
DbGeometry

要比较相等的第一个几何图形值。

otherGeometry
DbGeometry

要比较相等的第二个几何图形值。

返回

如果 geometryValue 在空间上等于 otherGeometry,则为 true;否则为 false。

例外

geometryValue 或 otherGeometry 为 null。

geometryValue 或 otherGeometry 与此空间服务实现不兼容。

适用于