Share via


QuerySqlGenerator.RequiresParentheses(SqlExpression, SqlExpression) Method

Definition

Returns a bool value indicating if the inner SQL expression required to be put inside parenthesis when generating SQL for outer SQL expression.

protected virtual bool RequiresParentheses (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression outerExpression, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression innerExpression);
abstract member RequiresParentheses : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> bool
override this.RequiresParentheses : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> bool
Protected Overridable Function RequiresParentheses (outerExpression As SqlExpression, innerExpression As SqlExpression) As Boolean

Parameters

outerExpression
SqlExpression

The outer expression which provides context in which SQL is being generated.

innerExpression
SqlExpression

The inner expression which may need to be put inside parenthesis.

Returns

A bool value indicating that parenthesis is required or not.

Applies to