Export (0) Print
Expand All

DbExpressionBuilder.Any Method (DbExpression)

.NET Framework 4.6 and 4.5

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

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

public static DbExpression Any(
	this DbExpression source
)

Parameters

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

An expression that specifies the input set.

Return Value

Type: System.Data.Common.CommandTrees.DbExpression
A new DbNotExpression applied to a new DbIsEmptyExpression with the specified argument.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DbExpression. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

ExceptionCondition
ArgumentNullException

source is null.

ArgumentException

source does not have a collection result type.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft