EasyObjects.NET Programmers Reference

EasyObject.LoadFromSql Method (DBCommandWrapper)

Load the EasyObject with the results from a SQL query or stored procedure.

protected bool LoadFromSql(
   DBCommandWrapper dbCommandWrapper
);

Parameters

dbCommandWrapper
The command wrapper to use when calling ExecuteDataSet.

Return Value

True if one or more rows was returned, false if not or an exception occurred.A boolean value indicating success or failure

Remarks

The internal DataTable is loaded with any results returned from the stored procedure or query, but the columns may or may not line up with the EasyObject's Schema class. There is no restriction on the type or number of columns returned in the query.

To see if any errors occurred from the database, see ErrorMessage.

See Also

EasyObject Class | NCI.EasyObjects Namespace | EasyObject.LoadFromSql Overload List