QueryableExtensions.AsStreaming<T> Method (IQueryable<T>)

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Note: This API is now obsolete.

Returns a new query that will stream the results instead of buffering. This method works by calling the AsStreaming method of the underlying query object. If the underlying query object does not have an AsStreaming method, then calling this method will have no affect.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

[ObsoleteAttribute("LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")]
public static IQueryable<T> AsStreaming<T>(
	this IQueryable<T> source

Type Parameters


The type of the elements of source.


Type: System.Linq.IQueryable<T>
An IQueryable<T> to apply AsStreaming to.

Return Value

Type: System.Linq.IQueryable<T>
A new query with AsStreaming applied, or the source query if AsStreaming is not supported.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).aspx.