RelationalParameterBasedSqlProcessor.ExpandFromSqlParameter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ExpandFromSqlParameter(SelectExpression, IReadOnlyDictionary<String,Object>, Boolean)
針對指定的參數值,將 參數展開至 FromSqlExpression 內 SelectExpression 。
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)
將參數展開至 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 值,指出是否可以快取查詢運算式。
傳回
已處理的查詢運算式。