DbExpressionBuilder.Exists Method (DbExpression)

 

Creates a new DbExpression that determines whether the specified set argument is non-empty.

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

public static DbExpression Exists(
	this DbExpression argument
)

Parameters

argument
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

An expression that specifies the input set.

Return Value

Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

A new DbNotExpression applied to a new DbIsEmptyExpression with the specified argument.

Exception Condition
ArgumentNullException

argument is null.

ArgumentException

argument does not have a collection result type.