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

SqlMapper.QueryForObject Method (String, Object, Object)

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

[Visual Basic]
NotOverridable Overloads Public Function QueryForObject( _
   ByVal String As String, _
   ByVal Object As Object, _
   ByVal Object As Object _
) As Object _
    Implements ISqlMapper.
[C#]
public 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.

Implements

ISqlMapper.

See Also

SqlMapper Class | IBatisNet.DataMapper Namespace | SqlMapper.QueryForObject Overload List