Udostępnij za pośrednictwem


DbSpatialServices.SpatialEquals Metoda

Definicja

Przeciążenia

SpatialEquals(DbGeography, DbGeography)

Określa, czy dwie podane DbGeography wartości są równe przestrzennie.

SpatialEquals(DbGeometry, DbGeometry)

Określa, czy dwie podane DbGeometry wartości są równe przestrzennie.

SpatialEquals(DbGeography, DbGeography)

Określa, czy dwie podane DbGeography wartości są równe przestrzennie.

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

Parametry

geographyValue
DbGeography

Pierwsza wartość geografii do porównania pod kątem równości.

otherGeography
DbGeography

Druga wartość geografii do porównania pod kątem równości.

Zwraca

wartość true, jeśli wartość geographyValue jest przestrzennie równa innąGeography; w przeciwnym razie wartość false.

Wyjątki

geographyValue lubotherGeography ma wartość null.

geographyValue lubotherGeography jest niezgodny z tą implementacją usług przestrzennych.

Dotyczy

SpatialEquals(DbGeometry, DbGeometry)

Określa, czy dwie podane DbGeometry wartości są równe przestrzennie.

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

Parametry

geometryValue
DbGeometry

Pierwsza wartość geometryczna do porównania pod kątem równości.

otherGeometry
DbGeometry

Druga wartość geometryczna do porównania pod kątem równości.

Zwraca

wartość true, jeśli wartość geometryValue jest przestrzennie równa innegoGeometry; w przeciwnym razie wartość false.

Wyjątki

geometryValue lubotherGeometry ma wartość null.

geometryValue lubotherGeometry jest niezgodny z tą implementacją usług przestrzennych.

Dotyczy