Executes a SQL command and creates an object list using Reflection.
Not very efficient but provides an easy way to retrieve object lists from queries.
public virtual IEnumerable<T> Query<T>(DbCommand command, Object[] parameters)
Return Value
List of objects or null. Null is returned if there are no matches
Parameters
command
Command object containing configured SQL command 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, 1996-2023 • Updated: 07/15/20
Comment or report problem with topic