DbExpressionBuilder.IsEmpty Method (DbExpression)

.NET Framework (current version)
 

Creates a new DbIsEmptyExpression that determines whether the specified set argument is an empty set.

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

public static DbIsEmptyExpression IsEmpty(
	this DbExpression argument
)

Parameters

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

An expression that specifies the input set.

Return Value

Type: System.Data.Common.CommandTrees.DbIsEmptyExpression

A new DbIsEmptyExpression with the specified argument.

Exception Condition
ArgumentNullException

argument is null.

ArgumentException

argument does not have a collection result type.

.NET Framework
Available since 4.5
Return to top
Show: