SpatialEdmFunctions.SpatialBuffer Method (DbExpression, DbExpression)
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.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbFunctionExpression SpatialBuffer( this DbExpression spatialValue, DbExpression distance )
Parameters
- spatialValue
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the spatial value.
- distance
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the buffer distance.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that returns a geometry value representing all points less than or equal to distance from spatialValue.