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)

Syntax

'Declaration
<ExtensionAttribute> _
<ObsoleteAttribute("LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")> _
Public Shared Function AsStreaming(Of T) ( _
    source As IQueryable(Of T) _
) As IQueryable(Of T)
'Usage
Dim source As IQueryable(Of T)
Dim returnValue As IQueryable(Of T)

returnValue = source.AsStreaming()
[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
)
[ExtensionAttribute]
[ObsoleteAttribute(L"LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")]
public:
generic<typename T>
static IQueryable<T>^ AsStreaming(
    IQueryable<T>^ source
)
[<ObsoleteAttribute("LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")>]
static member AsStreaming : 
        source:IQueryable<'T> -> IQueryable<'T> 
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the elements of source.

Parameters

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) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

QueryableExtensions Class

AsStreaming Overload

System.Data.Entity Namespace