Share via


DbRawSqlQuery<TElement>.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(Of TElement)
'用途
Dim instance As DbRawSqlQuery 
Dim returnValue As DbRawSqlQuery(Of TElement)

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

傳回值

類型:System.Data.Entity.Infrastructure.DbRawSqlQuery<TElement>
已套用 AsStreaming 的新查詢。

請參閱

參考

DbRawSqlQuery<TElement> 類別

System.Data.Entity.Infrastructure 命名空間