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

IMappedStatement.ExecuteQueryForObject Method (ISqlMapSession, Object, T)

Executes an SQL statement that returns a single row as an Object of the type of the resultObject passed in as a parameter.

[Visual Basic]
Function ExecuteQueryForObject( _
   ByVal ISqlMapSession As ISqlMapSession, _
   ByVal Object As Object, _
   ByVal IMappedStatement.T As ``0 _
) As ``0
[C#]
T <T>ExecuteQueryForObject(
   ISqlMapSession session,
   Object parameterObject,
   IMappedStatement.T resultObject
);

Parameters

session
The session used to execute the statement.
parameterObject
The object used to set the parameters in the SQL.
resultObject
The result object.

Return Value

The object

See Also

IMappedStatement Interface | IBatisNet.DataMapper.MappedStatements Namespace | IMappedStatement.ExecuteQueryForObject Overload List