QuerySqlGenerator.RequiresParentheses(SqlExpression, SqlExpression) Method
Definition
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework