Database.Map<TResult>(SqlBuilder) Method

Maps the results of the query to TResult objects. The query is deferred-executed.

Namespace: DbExtensions
Assembly: DbExtensions.dll

Overloads

Name Description
Map(SqlBuilder) Maps the results of the query to dynamic objects. The query is deferred-executed.
Map(SqlBuilder, Type) Maps the results of the query to objects of type specified by the resultType parameter. The query is deferred-executed.
Map<TResult>(SqlBuilder) Maps the results of the query to TResult objects. The query is deferred-executed.
Map<TResult>(SqlBuilder, Func<DbDataReader, TResult>) Maps the results of the query to TResult objects, using the provided mapper delegate.

Syntax

public IEnumerable<TResult> Map<TResult>(
	SqlBuilder query
)

Parameters

query  SqlBuilder

The query.

Type Parameters

TResult

The type of objects to map the results to.

Return Value

IEnumerable<TResult>
The results of the query as TResult objects.

See Also

Reference

Database Class
DbExtensions Namespace

© Max Toro Q.