Author: gbayon
Date: Sun Jun 25 13:48:22 2006
New Revision: 417078
URL: http://svn.apache.org/viewvc?rev=417078&view=rev
Log:
- Update doc
Modified:
ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml
Modified: ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml
URL:
http://svn.apache.org/viewvc/ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml?rev=417078&r1=417077&r2=417078&view=diff
==============================================================================
--- ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml (original)
+++ ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml Sun Jun 25 13:48:22
2006
@@ -1542,15 +1542,23 @@
public int Delete(string statementName, object parameterObject);
public object QueryForObject(string statementName, object parameterObject);
+public T QueryForObject<T>(string statementName, object parameterObject);
public object QueryForObject(string statementName, object parameterObject,
object resultObject);
+public T QueryForObject<T>(string statementName, object parameterObject,
T resultObject);
public IList QueryForList(string statementName, object parameterObject);
+public IList<T> QueryForList<T>(string statementName, object
parameterObject);
public void QueryForList(string statementName, object parameterObject, IList
resultObject);
+public void QueryForList<T>(string statementName, object
parameterObject, IList<T> resultObject);
public IList QueryForList(string statementName, object parameterObject,
int skipResults, int maxResults);
+public IList<T> QueryForList<T>(string statementName, object
parameterObject,
+ int skipResults, int maxResults);
public IList QueryWithRowDelegate(string statementName, object
parameterObject,
RowDelegate rowDelegate);
+public IList<T> QueryWithRowDelegate<T>(string statementName,
object parameterObject,
+ SqlMapper.RowDelegate<T> rowDelegate);
public PaginatedList QueryForPaginatedList(String statementName, object
parameterObject,
int pageSize);
@@ -1620,8 +1628,12 @@
object parameterObject);
public object QueryForObject(string statementName,
object parameterObject,
- object resultObject);</programlisting></para>
+ object resultObject);
+
+public T QueryForObject<T>(string statementName, object parameterObject);
+public T QueryForObject<T>(string statementName, object parameterObject,
T resultObject);
+</programlisting></para>
<para>If a Mapped Statement is expected to select a single row, then
call it using <methodname>QueryForObject</methodname>. Since the
Mapped Statement definition specifies the result class expected, the
@@ -1643,7 +1655,16 @@
public IList QueryForList(string statementName,
object parameterObject,
int skipResults,
- int maxResults);</programlisting></para>
+ int maxResults);
+
+public IList<T> QueryForList<T>(string statementName, object
parameterObject);
+public void QueryForList<T>(string statementName,
+ object parameterObject,
+
IList<T> resultObject);
+public IList<T> QueryForList<T>(string statementName,
+ object parameterObject,
+ int skipResults, int maxResults);
+ </programlisting></para>
<para>If a Mapped Statement is expected to select multiple rows, then
call it using <methodname>QueryForList</methodname> . Each entry in
@@ -1669,7 +1690,11 @@
public IList QueryWithRowDelegate(string statementName,
object parameterObject,
- RowDelegate
rowDelegate);</programlisting></para>
+ RowDelegate rowDelegate);
+
+public IList<T> QueryWithRowDelegate<T>(string statementName,
object parameterObject,
+ SqlMapper.RowDelegate<T> rowDelegate);
+
</programlisting></para>
<para>No matter how well our database is designed or how cleverly we
describe our maps, the result objects we get back may not be ideal.