RelationalParameterBasedSqlProcessor.ExpandFromSqlParameter 方法

定义

重载

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

将给定参数FromSqlExpressionSelectExpression值的 内的参数展开。

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

将参数扩展到给定参数 FromSqlExpression 值的查询表达式内部。

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

Source:
RelationalParameterBasedSqlProcessor.cs
Source:
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

一个布尔值,指示是否可以缓存 select 表达式。

返回

已处理的选择表达式。

适用于

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

Source:
RelationalParameterBasedSqlProcessor.cs
Source:
RelationalParameterBasedSqlProcessor.cs
Source:
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

一个布尔值,指示是否可以缓存查询表达式。

返回

已处理的查询表达式。

适用于