DataAccessBase.Query<T>

Executes a SQL statement and creates an object list using optimized Reflection.

Not very efficient but provides an easy way to retrieve an object list from query.

public virtual IEnumerable<T> Query<T>(string sql,
	Object[] parameters)

Return Value

List of objects or null. Null is returned if there are no matches

Parameters

sql
Sql string to execute

parameters
DbParameters (CreateParameter()) for named parameters or use @0,@1 parms in SQL and plain values

Overloads:


See also:

Class DataAccessBase

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic