ISqlExpressionFactory.Exists Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- Source:
- ISqlExpressionFactory.cs
- Source:
- ISqlExpressionFactory.cs
Creates a new ExistsExpression which represents an EXISTS operation in a SQL tree.
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.ExistsExpression Exists (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression subquery);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Exists (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression subquery);
abstract member Exists : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.ExistsExpression
abstract member Exists : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Function Exists (subquery As SelectExpression) As ExistsExpression
Public Function Exists (subquery As SelectExpression) As SqlExpression
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 |
- Source:
- ISqlExpressionFactory.cs
Creates a new ExistsExpression which represents an EXISTS operation in a SQL tree.
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.ExistsExpression Exists (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression subquery, bool negated);
abstract member Exists : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.ExistsExpression
Public Function Exists (subquery As SelectExpression, negated As Boolean) As ExistsExpression
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 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: