Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

MultipleRowDbCommandBuilder<(Of <(<'TCommand, TParameter>)>)>..::..ToObjectStream<(Of <(<'TObject>)>)> Method

Indicates the results should be materialized as a stream of objects. This can be either IEnumerable ot IAsyncEnumerable.

Namespace:  Tortuga.Chain.CommandBuilders
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public IConstructibleMaterializer<ObjectStream<TObject>> ToObjectStream<TObject>(
	CollectionOptions collectionOptions
)
Public Function ToObjectStream(Of TObject) ( _
	collectionOptions As CollectionOptions _
) As IConstructibleMaterializer(Of ObjectStream(Of TObject))
public:
generic<typename TObject>
IConstructibleMaterializer<ObjectStream<TObject>^>^ ToObjectStream(
	CollectionOptions^ collectionOptions
)

Type Parameters

TObject
The type of the model.

Parameters

collectionOptions
Type: Tortuga.Chain..::..CollectionOptions
The collection options.