DbRawSqlQuery.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 DbRawSqlQuery
用法
Dim instance As DbRawSqlQuery 
Dim returnValue As DbRawSqlQuery 

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 DbRawSqlQuery AsStreaming()
[ObsoleteAttribute(L"Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")]
public:
virtual DbRawSqlQuery^ AsStreaming()
[<ObsoleteAttribute("Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")>]
abstract AsStreaming : unit -> DbRawSqlQuery 
[<ObsoleteAttribute("Queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")>]
override AsStreaming : unit -> DbRawSqlQuery
public function AsStreaming() : DbRawSqlQuery

返回值

类型:System.Data.Entity.Infrastructure.DbRawSqlQuery
应用了 AsStreaming 的新查询。

请参阅

参考

DbRawSqlQuery 类

System.Data.Entity.Infrastructure 命名空间