共用方式為


RelationalParameterBasedSqlProcessor.ExpandFromSqlParameter 方法

定義

多載

ExpandFromSqlParameter(SelectExpression, IReadOnlyDictionary<String,Object>, Boolean)

針對指定的參數值,將 參數展開至 FromSqlExpressionSelectExpression

ExpandFromSqlParameter(Expression, IReadOnlyDictionary<String,Object>, Boolean)

將參數展開至 FromSqlExpression 給定參數值的查詢運算式內。

ExpandFromSqlParameter(SelectExpression, IReadOnlyDictionary<String,Object>, Boolean)

來源:
RelationalParameterBasedSqlProcessor.cs
來源:
RelationalParameterBasedSqlProcessor.cs

針對指定的參數值,將 參數展開至 FromSqlExpressionSelectExpression

protected virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression ExpandFromSqlParameter (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression selectExpression, System.Collections.Generic.IReadOnlyDictionary<string,object> parametersValues, out bool canCache);
protected virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression ExpandFromSqlParameter (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression selectExpression, System.Collections.Generic.IReadOnlyDictionary<string,object?> parametersValues, out bool canCache);
abstract member ExpandFromSqlParameter : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression
override this.ExpandFromSqlParameter : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression
Protected Overridable Function ExpandFromSqlParameter (selectExpression As SelectExpression, parametersValues As IReadOnlyDictionary(Of String, Object), ByRef canCache As Boolean) As SelectExpression

參數

selectExpression
SelectExpression

要優化的選取運算式。

parametersValues
IReadOnlyDictionary<String,Object>

要使用的參數值字典。

canCache
Boolean

bool 值,指出是否可以快取 select 運算式。

傳回

已處理的選取運算式。

適用於

ExpandFromSqlParameter(Expression, IReadOnlyDictionary<String,Object>, Boolean)

來源:
RelationalParameterBasedSqlProcessor.cs
來源:
RelationalParameterBasedSqlProcessor.cs
來源:
RelationalParameterBasedSqlProcessor.cs

將參數展開至 FromSqlExpression 給定參數值的查詢運算式內。

protected virtual System.Linq.Expressions.Expression ExpandFromSqlParameter (System.Linq.Expressions.Expression queryExpression, System.Collections.Generic.IReadOnlyDictionary<string,object?> parametersValues, out bool canCache);
abstract member ExpandFromSqlParameter : System.Linq.Expressions.Expression * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> System.Linq.Expressions.Expression
override this.ExpandFromSqlParameter : System.Linq.Expressions.Expression * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> System.Linq.Expressions.Expression
Protected Overridable Function ExpandFromSqlParameter (queryExpression As Expression, parametersValues As IReadOnlyDictionary(Of String, Object), ByRef canCache As Boolean) As Expression

參數

queryExpression
Expression

要優化的查詢運算式。

parametersValues
IReadOnlyDictionary<String,Object>

要使用的參數值字典。

canCache
Boolean

bool 值,指出是否可以快取查詢運算式。

傳回

已處理的查詢運算式。

適用於