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

ISqlMapper.QueryForObject Method (String, Object, Object)

Executes a Sql SELECT statement that returns a single object of the type of the resultObject parameter.

[Visual Basic]
Function QueryForObject( _
   ByVal String As String, _
   ByVal Object As Object, _
   ByVal Object As Object _
) As Object
[C#]
object QueryForObject(
   String statementName,
   Object parameterObject,
   Object resultObject
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.
resultObject
An object of the type to be returned.

Return Value

The single result object populated with the result set data.

See Also

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