iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

ISqlMapper.QueryForObject Method (String, Object)

Executes a Sql SELECT statement that returns that returns data to populate a single object instance.

The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
[Visual Basic]
Function QueryForObject( _
   ByVal String As String, _
   ByVal Object As Object _
) As Object
[C#]
object QueryForObject(
   String statementName,
   Object parameterObject
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.

Return Value

The single result object populated with the result set data.

See Also

ISqlMapper Interface | IBatisNet.DataMapper Namespace | ISqlMapper.QueryForObject Overload List