Compartir a través de


RelationalQueryTranslationPostprocessor.OptimizeSqlExpression Método

Definición

Precaución

Use 'Optimize' method on RelationalParameterBasedSqlProcessor instead. If you have a case for optimizations to be performed here, please file an issue on github.com/dotnet/efcore.

Optimiza la expresión SQL.

protected virtual System.Linq.Expressions.Expression OptimizeSqlExpression (System.Linq.Expressions.Expression query);
[System.Obsolete("Use 'Optimize' method on RelationalParameterBasedSqlProcessor instead. If you have a case for optimizations to be performed here, please file an issue on github.com/dotnet/efcore.")]
protected virtual System.Linq.Expressions.Expression OptimizeSqlExpression (System.Linq.Expressions.Expression query);
abstract member OptimizeSqlExpression : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
override this.OptimizeSqlExpression : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
[<System.Obsolete("Use 'Optimize' method on RelationalParameterBasedSqlProcessor instead. If you have a case for optimizations to be performed here, please file an issue on github.com/dotnet/efcore.")>]
abstract member OptimizeSqlExpression : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
override this.OptimizeSqlExpression : System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Protected Overridable Function OptimizeSqlExpression (query As Expression) As Expression

Parámetros

query
Expression

Expresión que se va a optimizar.

Devoluciones

Expresión que tiene SQL optimizado.

Atributos

Se aplica a