DbSpatialServices.SpatialEquals Method
Determines whether the two given values are spatially equal.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | SpatialEquals(DbGeography, DbGeography) | Determines whether the two given DbGeography values are spatially equal. |
![]() | SpatialEquals(DbGeometry, DbGeometry) | Determines whether the two given DbGeometry values are spatially equal. |
DbSpatialServices.SpatialEquals Method (DbGeography, DbGeography)
Determines whether the two given DbGeography values are spatially equal.
public abstract bool SpatialEquals( DbGeography geographyValue, DbGeography otherGeography )
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The first geography value to compare for equality.
- otherGeography
-
Type:
System.Data.Entity.Spatial.DbGeography
The second geography value to compare for equality.
Return Value
Type: System.Booleantrue if geographyValue is spatially equal to otherGeography; otherwise, false.
Exception | Condition |
---|---|
ArgumentNullException | geographyValue or otherGeography is null. |
ArgumentException | geographyValue or otherGeography is not compatible with this spatial services implementation. |
DbSpatialServices.SpatialEquals Method (DbGeometry, DbGeometry)
Determines whether the two given DbGeometry values are spatially equal.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The first geometry value to compare for equality.
- otherGeometry
-
Type:
System.Data.Entity.Spatial.DbGeometry
The second geometry value to compare for equality.
Return Value
Type: System.Booleantrue if geometryValue is spatially equal to otherGeometry; otherwise, false.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue or otherGeometry is null. |
ArgumentException | geometryValue or otherGeometry is not compatible with this spatial services implementation. |