共用方式為


DbRawSqlQuery.AsStreaming 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 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 命名空間