SqlSet.Select<TResult> Method (Func<IDataRecord, TResult>, String, Object[])

Projects each element of the set into a new form.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public SqlSet<TResult> Select<TResult>(
	Func<IDataRecord, TResult> mapper,
	string columnList,
	params Object[] parameters
)

Parameters

mapper

Type: System.Func<IDataRecord, TResult>
A custom mapper function that creates TResult instances from the rows in the set.

columnList

Type: System.String
The list of columns that are used by mapper.

parameters

Type: System.Object[]
The parameters to apply to the columnList.

Type Parameters

TResult

The type that mapper returns.

Return Value

Type: SqlSet<TResult>
A new SqlSet<TResult>.

See Also

Reference

SqlSet Class
DbExtensions Namespace

© Max Toro Q.