DbSpatialServices.GetSpatialTypeName Method
Returns a value that indicates the spatial type name of the given value.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GetSpatialTypeName(DbGeography) | Returns a value that indicates the spatial type name of the given DbGeography value. |
![]() | GetSpatialTypeName(DbGeometry) | Returns a value that indicates the spatial type name of the given DbGeometry value. |
DbSpatialServices.GetSpatialTypeName Method (DbGeography)
Returns a value that indicates the spatial type name of the given DbGeography value.
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The geography value.
Exception | Condition |
---|---|
ArgumentNullException | geographyValue is null. |
ArgumentException | geographyValue is not compatible with this spatial services implementation. |
DbSpatialServices.GetSpatialTypeName Method (DbGeometry)
Returns a value that indicates the spatial type name of the given DbGeometry value.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |