ISqlExpressionFactory.Exists Method

Definition

Overloads

Exists(SelectExpression)

Creates a new ExistsExpression which represents an EXISTS operation in a SQL tree.

Exists(SelectExpression, Boolean)

Creates a new ExistsExpression which represents an EXISTS operation in a SQL tree.

Exists(SelectExpression)

Source:
ISqlExpressionFactory.cs
Source:
ISqlExpressionFactory.cs

Creates a new ExistsExpression which represents an EXISTS operation in a SQL tree.

C#
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.ExistsExpression Exists (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression subquery);
C#
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Exists (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression subquery);

Parameters

subquery
SelectExpression

A subquery to check existence of.

Returns

An expression representing an EXISTS operation in a SQL tree.

Applies to

Entity Framework Core 9.0 and Entity Framework Core 8.0
Product Versions
Entity Framework Core 8.0, 9.0

Exists(SelectExpression, Boolean)

Source:
ISqlExpressionFactory.cs

Creates a new ExistsExpression which represents an EXISTS operation in a SQL tree.

C#
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.ExistsExpression Exists (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression subquery, bool negated);

Parameters

subquery
SelectExpression

A subquery to check existence of.

negated
Boolean

A value indicating if the existence check is negated.

Returns

An expression representing an EXISTS operation in a SQL tree.

Applies to

Entity Framework Core 7.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0