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

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

Materializes the result as an immutable list of objects.

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

Syntax


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

Type Parameters

TObject
The type of the model.

Parameters

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

Return Value

Tortuga.Chain.IConstructibleMaterializer<System.Collections.Immutable.ImmutableList<TObject>>.

Exceptions


Remarks


In theory this will offer better performance than ToImmutableArray if you intend to further modify the result.