Associates database-specific options with a query.

Namespace:  Mindscape.LightSpeed.Linq
Assembly:  Mindscape.LightSpeed.Linq (in Mindscape.LightSpeed.Linq.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public static IQueryable<T> WithProviderOptions<T>(
	IQueryable<T> source,
	ProviderOptions providerOptions
)
Visual Basic (Declaration)
Public Shared Function WithProviderOptions(Of T) ( _
	source As IQueryable(Of T), _
	providerOptions As ProviderOptions _
) As IQueryable(Of T)

Parameters

source
Type: System.Linq..::.IQueryable<(Of <(T>)>)
An IQueryable<(Of <(T>)>) with which to associate the database-specific options.
providerOptions
Type: ProviderOptions
The database-specific options. The type of options object must correspond to the database provider against which you execute the query.

Type Parameters

T
The type of the elements of source.

Return Value

An IQueryable<(Of <(T>)>) which will perform the same query, but with the specified database-specific options.

See Also