DbQuery<TResult>.AsStreaming 方法

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

注意:此 API 现在已过时。

返回将流式处理结果而非缓存它的新查询。

命名空间:  System.Data.Entity.Infrastructure
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<ObsoleteAttribute("Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")> _
Public Overridable Function AsStreaming As DbQuery(Of TResult)
用法
Dim instance As DbQuery 
Dim returnValue As DbQuery(Of TResult)

returnValue = instance.AsStreaming()
[ObsoleteAttribute("Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")]
public virtual DbQuery<TResult> AsStreaming()
[ObsoleteAttribute(L"Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")]
public:
virtual DbQuery<TResult>^ AsStreaming()
[<ObsoleteAttribute("Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")>]
abstract AsStreaming : unit -> DbQuery<'TResult> 
[<ObsoleteAttribute("Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")>]
override AsStreaming : unit -> DbQuery<'TResult> 
public function AsStreaming() : DbQuery<TResult>

返回值

类型:System.Data.Entity.Infrastructure.DbQuery<TResult>
应用了 AsStreaming 的新查询。

请参阅

参考

DbQuery<TResult> 类

System.Data.Entity.Infrastructure 命名空间