SqlSpatialServices.SpatialEquals Method
Determines whether the two given values are spatially equal.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() | SpatialEquals(DbGeography, DbGeography) | Determines whether the two given DbGeography values are spatially equal.(Overrides DbSpatialServices.SpatialEquals(DbGeography, DbGeography).) |
![]() | SpatialEquals(DbGeometry, DbGeometry) | Determines whether the two given DbGeometry values are spatially equal.(Overrides DbSpatialServices.SpatialEquals(DbGeometry, DbGeometry).) |
SqlSpatialServices.SpatialEquals Method (DbGeography, DbGeography)
Determines whether the two given DbGeography values are spatially equal.
public override 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.
SqlSpatialServices.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.