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

SqlMapper.QueryForObject Method

Executes a Sql SELECT statement that returns that returns data to populate a single object instance.

The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.

Overload List

Executes a Sql SELECT statement that returns that returns data to populate a single object instance. The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.

public object QueryForObject(String,Object);

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

public object QueryForObject(String,Object,Object);

Executes a Sql SELECT statement that returns that returns data to populate a single object instance. The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.

public T QueryForObject<T>(String,Object);

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

public T QueryForObject<T>(String,Object,SqlMapper.T);

See Also

SqlMapper Class | IBatisNet.DataMapper Namespace