语言

RelationalShapedQueryCompilingExpressionVisitor.MaxNullableParametersForPregeneratedSql 属性

定义

确定查询可能具有的最大可为 null 参数数,以便我们在预编译的查询中为其预生成 SQL;每个额外的可为 null 参数将我们需要预生成的 SQL 数加倍。 如果查询具有比此数字更多的可为 null 参数,我们不预生成 SQL,而是将 SQL 作为表达式树插入,并在运行时像往常一样执行 RelationalParameterBasedSqlProcessor (启动速度较慢)。

[System.Diagnostics.CodeAnalysis.Experimental("EF9100")]
protected virtual int MaxNullableParametersForPregeneratedSql { get; }
[<System.Diagnostics.CodeAnalysis.Experimental("EF9100")>]
member this.MaxNullableParametersForPregeneratedSql : int
Protected Overridable ReadOnly Property MaxNullableParametersForPregeneratedSql As Integer

属性值

特性

适用于