QueryableExtensions.AsStreaming<T> 方法 (IQueryable<T>)
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
注意:此 API 现在已过时。
返回将流式处理结果而非缓存它的新查询。 此方法通过调用基础查询对象的 AsStreaming 方法来运行。 如果基础查询对象没有 AsStreaming 方法,则调用此方法将不会有任何影响。
命名空间: System.Data.Entity
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<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)
用法
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.
类型参数
- T
source 的元素的类型。
参数
- source
类型:System.Linq.IQueryable<T>
要应用 AsStreaming 的 IQueryable<T>。
返回值
类型:System.Linq.IQueryable<T>
应用 AsStreaming 的新查询,如果不支持 AsStreaming,则为源查询。
使用说明
在 Visual Basic 和 C# 中,可以在 IQueryable<T> 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.113)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.113)。