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

MappedStatement.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]
Overridable Overloads Public Function ExecuteQueryForObject( _
   ByVal ISqlMapSession As ISqlMapSession, _
   ByVal Object As Object, _
   ByVal MappedStatement.T As ``0 _
) As ``0 _
    Implements IMappedStatement.
[C#]
public virtual T <T>ExecuteQueryForObject(
   ISqlMapSession session,
   Object parameterObject,
   MappedStatement.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

Implements

IMappedStatement.

See Also

MappedStatement Class | IBatisNet.DataMapper.MappedStatements Namespace | MappedStatement.ExecuteQueryForObject Overload List