SpatialEdmFunctions.SpatialWithin Method (DbExpression, DbExpression)
Creates a DbFunctionExpression that invokes the canonical 'SpatialWithin' function with the specified arguments, which must each have an Edm.Geometry result type. The result type of the expression is Edm.Boolean.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbFunctionExpression SpatialWithin( this DbExpression geometryValue1, DbExpression geometryValue2 )
Parameters
- geometryValue1
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the first geometry value.
- geometryValue2
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the geometry value that should be compared with geometryValue1.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that returns a Boolean value indicating whether geometryValue1 is spatially within geometryValue2.