SpatialEdmFunctions.GeographyFromGml Method

Definition

Creates a DbFunctionExpression that invokes the canonical 'GeographyFromGml' function.

Overloads

GeographyFromGml(DbExpression)

Creates a DbFunctionExpression that invokes the canonical 'GeographyFromGml' function with the specified argument, which must have a string result type. The result type of the expression is Edm.Geography.

GeographyFromGml(DbExpression, DbExpression)

Creates a DbFunctionExpression that invokes the canonical 'GeographyFromGml' function with the specified arguments. geographyMarkup must have a string result type, while coordinateSystemId must have an integer numeric result type. The result type of the expression is Edm.Geography.

GeographyFromGml(DbExpression)

Creates a DbFunctionExpression that invokes the canonical 'GeographyFromGml' function with the specified argument, which must have a string result type. The result type of the expression is Edm.Geography.

C#
public static System.Data.Common.CommandTrees.DbFunctionExpression GeographyFromGml(System.Data.Common.CommandTrees.DbExpression geographyMarkup);

Parameters

geographyMarkup
DbExpression

An expression that provides the Geography Markup Language (GML) representation of the geography value.

Returns

A new DbFunctionExpression that returns a new geography value based on the specified value with the default coordinate system id (SRID) of the underlying provider.

Exceptions

geographyMarkup

geographyMarkup

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GeographyFromGml(DbExpression, DbExpression)

Creates a DbFunctionExpression that invokes the canonical 'GeographyFromGml' function with the specified arguments. geographyMarkup must have a string result type, while coordinateSystemId must have an integer numeric result type. The result type of the expression is Edm.Geography.

C#
public static System.Data.Common.CommandTrees.DbFunctionExpression GeographyFromGml(System.Data.Common.CommandTrees.DbExpression geographyMarkup, System.Data.Common.CommandTrees.DbExpression coordinateSystemId);

Parameters

geographyMarkup
DbExpression

An expression that provides the Geography Markup Language (GML) representation of the geography value.

coordinateSystemId
DbExpression

An expression that provides the coordinate system id (SRID) of the geography value's coordinate system.

Returns

A new DbFunctionExpression that returns a new geography value based on the specified values.

Exceptions

geographyMarkup coordinateSystemId

geographyMarkup coordinateSystemId

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1