SpatialEdmFunctions.SpatialBuffer Method (DbExpression, DbExpression)

.NET Framework (current version)
 

Creates a DbFunctionExpression that invokes the canonical 'SpatialBuffer' function with the specified arguments, which must have a Edm.Geography or Edm.Geometry and Edm.Double result types. The result type of the expression is Edm.Geometry.

Namespace:   System.Data.Common.CommandTrees.ExpressionBuilder.Spatial
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static DbFunctionExpression SpatialBuffer(
	this DbExpression spatialValue,
	DbExpression distance
)

Parameters

spatialValue
Type: System.Data.Common.CommandTrees.DbExpression

An expression that specifies the spatial value.

distance
Type: System.Data.Common.CommandTrees.DbExpression

An expression that specifies the buffer distance.

Return Value

Type: System.Data.Common.CommandTrees.DbFunctionExpression

A new DbFunctionExpression that returns a geometry value representing all points less than or equal to distance from spatialValue.

Exception Condition
ArgumentNullException

spatialValuedistance

ArgumentException

spatialValuedistance

.NET Framework
Available since 4.5
Return to top
Show: