共用方式為


SqlTranslatingExpressionVisitorFactory.Create 方法

定義

多載

Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean)

建立新的 SqlTranslatingExpressionVisitor。

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

建立新的 SqlTranslatingExpressionVisitor。

Create(RelationalQueryModelVisitor, SelectExpression, Expression, Boolean)

來源:
SqlTranslatingExpressionVisitorFactory.cs
來源:
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

目標 select 運算式。

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

目標 select 運算式。

topLevelPredicate
Expression

最上層述詞。

bindParentQueries
Boolean

true 表示系結父查詢。

inProjection
Boolean

如果我們正在翻譯投影,則為 true。

傳回

SqlTranslatingExpressionVisitor。

實作

適用於