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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor