Επεξεργασία

Κοινή χρήση μέσω


DbExpressionBuilder.Any Method

Definition

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

Overloads

Any(DbExpression)

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

Any(DbExpression, Func<DbExpression,DbExpression>)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for any element of the input set.

Any(DbExpressionBinding, DbExpression)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for any element of the input set.

Any(DbExpression)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbExpression ^ Any(System::Data::Common::CommandTrees::DbExpression ^ source);
public static System.Data.Common.CommandTrees.DbExpression Any (this System.Data.Common.CommandTrees.DbExpression source);
static member Any : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbExpression
<Extension()>
Public Function Any (source As DbExpression) As DbExpression

Parameters

source
DbExpression

An expression that specifies the input set.

Returns

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

Exceptions

source is null.

source does not have a collection result type.

Applies to

Any(DbExpression, Func<DbExpression,DbExpression>)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for any element of the input set.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbQuantifierExpression ^ Any(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Data::Common::CommandTrees::DbExpression ^> ^ predicate);
public static System.Data.Common.CommandTrees.DbQuantifierExpression Any (this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> predicate);
static member Any : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (source As DbExpression, predicate As Func(Of DbExpression, DbExpression)) As DbQuantifierExpression

Parameters

source
DbExpression

An expression that specifies the input set.

predicate
Func<DbExpression,DbExpression>

A method representing the predicate to evaluate for each member of the input set. This method must produce an expression with a Boolean result type that provides the predicate logic.

Returns

A new DbQuantifierExpression that represents the Any operation.

Exceptions

source or predicate is null.

-or-

The expression produced by predicate is null.

source does not have a collection result type.

-or-

The expression produced by predicate does not have a Boolean result type.

Applies to

Any(DbExpressionBinding, DbExpression)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for any element of the input set.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbQuantifierExpression ^ Any(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Data::Common::CommandTrees::DbExpression ^ predicate);
public static System.Data.Common.CommandTrees.DbQuantifierExpression Any (this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpression predicate);
static member Any : System.Data.Common.CommandTrees.DbExpressionBinding * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (input As DbExpressionBinding, predicate As DbExpression) As DbQuantifierExpression

Parameters

input
DbExpressionBinding

An expression binding that specifies the input set.

predicate
DbExpression

An expression representing a predicate to evaluate for each member of the input set.

Returns

A new DbQuantifierExpression that represents the Any operation.

Exceptions

input or predicate is null.

The expression produced by predicate does not have a Boolean result type.

Applies to