SpatialEdmFunctions.SpatialContains Method (DbExpression, DbExpression)

 

Creates a DbFunctionExpression that invokes the canonical 'SpatialContains' function with the specified arguments, which must each have an Edm.Geometry result type. The result type of the expression is Edm.Boolean.

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

public static DbFunctionExpression SpatialContains(
	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.DbFunctionExpression

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