SqlTranslatingExpressionVisitorFactory.Create 方法

定义

重载

Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean)

创建新的 SqlTranslatingExpressionVisitor。

Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean, Boolean)

创建新的 SqlTranslatingExpressionVisitor。

Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean)

Source:
SqlTranslatingExpressionVisitorFactory.cs
Source:
SqlTranslatingExpressionVisitorFactory.cs

创建新的 SqlTranslatingExpressionVisitor。

public virtual Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor Create (Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor queryModelVisitor, Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression targetSelectExpression = default, System.Linq.Expressions.Expression topLevelPredicate = default, bool inProjection = false);
abstract member Create : Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor * Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression * System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor
override this.Create : Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor * Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression * System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor
Public Overridable Function Create (queryModelVisitor As RelationalQueryModelVisitor, Optional targetSelectExpression As SelectExpression = Nothing, Optional topLevelPredicate As Expression = Nothing, Optional inProjection As Boolean = false) As SqlTranslatingExpressionVisitor

参数

queryModelVisitor
RelationalQueryModelVisitor

查询模型访问者。

targetSelectExpression
SelectExpression

目标选择表达式。

topLevelPredicate
Expression

顶级谓词。

inProjection
Boolean

如果要转换投影,则为 true。

返回

SqlTranslatingExpressionVisitor。

实现

适用于

Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean, Boolean)

创建新的 SqlTranslatingExpressionVisitor。

public virtual Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor Create (Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor queryModelVisitor, Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression targetSelectExpression = default, System.Linq.Expressions.Expression topLevelPredicate = default, bool bindParentQueries = false, bool inProjection = false);
abstract member Create : Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor * Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression * System.Linq.Expressions.Expression * bool * bool -> Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor
override this.Create : Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor * Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression * System.Linq.Expressions.Expression * bool * bool -> Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor
Public Overridable Function Create (queryModelVisitor As RelationalQueryModelVisitor, Optional targetSelectExpression As SelectExpression = Nothing, Optional topLevelPredicate As Expression = Nothing, Optional bindParentQueries As Boolean = false, Optional inProjection As Boolean = false) As SqlTranslatingExpressionVisitor

参数

queryModelVisitor
RelationalQueryModelVisitor

查询模型访问者。

targetSelectExpression
SelectExpression

目标选择表达式。

topLevelPredicate
Expression

顶级谓词。

bindParentQueries
Boolean

若要绑定父查询,则为 true。

inProjection
Boolean

如果要转换投影,则为 true。

返回

SqlTranslatingExpressionVisitor。

实现

适用于