SpatialEdmFunctions.SpatialWithin(DbExpression, DbExpression) Method

Definition

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.

C#
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialWithin(this System.Data.Common.CommandTrees.DbExpression geometryValue1, System.Data.Common.CommandTrees.DbExpression geometryValue2);

Parameters

geometryValue1
DbExpression

An expression that specifies the first geometry value.

geometryValue2
DbExpression

An expression that specifies the geometry value that should be compared with geometryValue1.

Returns

A new DbFunctionExpression that returns a Boolean value indicating whether geometryValue1 is spatially within geometryValue2.

Exceptions

geometryValue1 geometryValue2

geometryValue1 geometryValue2

Applies to

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