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

SqlMapper.QueryForObject Method (String, Object, T)

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 SqlMapper.T As ``0 _
) As ``0 _
    Implements ISqlMapper.
[C#]
public T <T>QueryForObject(
   String statementName,
   Object parameterObject,
   SqlMapper.T instanceObject
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.
instanceObject
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