You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// When possible, uses a <c>TOP(n)</c> clause in the underlying <c>SELECT</c> statement to assist SQL Server memory grant estimation. The default is <see langword="true"/>.
@@ -21,5 +25,29 @@ public QueryableValuesSqlServerOptions UseSelectTopOptimization(bool useSelectTo
/// If <see langword="true"/>, the <see cref="IEnumerable{T}"/> provided to any of the <c>AsQueryableValues</c> methods will be enumerated when the query is materialized; otherwise, it will be immediately enumerated once. The default is <see langword="true"/>.
32
+
/// </summary>
33
+
/// <remarks>
34
+
/// <para>
35
+
/// Leaving this feature enabled has the following advantages:<br/>
36
+
/// - If your sequence of values is behind an <see cref="IEnumerable{T}"/>, it will be enumerated only when needed.<br/>
37
+
/// - The sequence is enumerated every time the query is materialized, allowing the query to be aware of any changes done to the underlying sequence.
38
+
/// </para>
39
+
/// <para>
40
+
/// You may want to disable this feature if you rely on the <see cref="Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToQueryString(System.Linq.IQueryable)"/> method across your application.
41
+
/// As of EF 7.0, the implementation of that API is making incompatible assumptions about the underlying ADO.NET query parameters, resulting in an <see cref="InvalidCastException"/> when this option is enabled.
42
+
/// </para>
43
+
/// </remarks>
44
+
/// <param name="useDeferredEnumeration"></param>
45
+
/// <returns>The same <see cref="QueryableValuesSqlServerOptions"/> instance so subsequent configurations can be chained.</returns>
0 commit comments