SqlTranslatingExpressionVisitorFactory.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean) |
创建新的 SqlTranslatingExpressionVisitor。 |
Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean, Boolean) |
创建新的 SqlTranslatingExpressionVisitor。 |
Create(RelationalQueryModelVisitor, SelectExpression, Expression, 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 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。