C# Class Habanero.DB.QueryResultLoaderDb

Loads an IQueryResult given a ISelectQuery from the database.
Inheritance: IQueryResultLoader
显示文件 Open project: Chillisoft/habanero

Public Methods

Method Description
GetResultSet ( ISelectQuery selectQuery ) : IQueryResult

Populates a QueryResult using the given ISelectQuery. With this method you can execute a custom select query and get a result set back. If you are loading against a database, the IClassDef associated to the ISelectQuery will be used to map property names to database fields and will also be used to convert values that are returned from the database to the expected type. This can be used to get result sets that span tables.

QueryResultLoaderDb ( IDatabaseConnection databaseConnection ) : System.Data

Creates the result set loader with the given IDatabaseConnection

Method Details

GetResultSet() public method

Populates a QueryResult using the given ISelectQuery. With this method you can execute a custom select query and get a result set back. If you are loading against a database, the IClassDef associated to the ISelectQuery will be used to map property names to database fields and will also be used to convert values that are returned from the database to the expected type. This can be used to get result sets that span tables.
public GetResultSet ( ISelectQuery selectQuery ) : IQueryResult
selectQuery ISelectQuery The select query to execute
return IQueryResult

QueryResultLoaderDb() public method

Creates the result set loader with the given IDatabaseConnection
public QueryResultLoaderDb ( IDatabaseConnection databaseConnection ) : System.Data
databaseConnection IDatabaseConnection
return System.Data