From: Michael D. <mik...@us...> - 2005-01-28 13:34:35
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11072 Modified Files: IQuery.cs Log Message: updated xml comments to explain limits and remove some java specific example code. Index: IQuery.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/IQuery.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** IQuery.cs 1 Jan 2005 03:33:40 -0000 1.13 --- IQuery.cs 28 Jan 2005 13:33:56 -0000 1.14 *************** *** 13,18 **** /// <c>ISession.Find()</c>; /// <list> ! /// <item>A particulare page of the result set may be selected by calling ! /// <c>SetMaxResults()</c>, <c>SetFirstResult</c></item> /// <item>Named query parameters may be used</item> /// </list> --- 13,25 ---- /// <c>ISession.Find()</c>; /// <list> ! /// <item> ! /// A particulare page of the result set may be selected by calling ! /// <c>SetMaxResults()</c>, <c>SetFirstResult()</c>. The generated sql ! /// depends on the capabilities of the <see cref="Dialect.Dialect"/>. Some ! /// Dialects are for databases that have built in paging (LIMIT) and those capabilities ! /// will be used to limit the number of records returned by the sql statement. ! /// If the database does not support LIMITs then all of the records will be returned, ! /// but the objects created will be limited to the specific results requested. ! /// </item> /// <item>Named query parameters may be used</item> /// </list> *************** *** 21,35 **** /// to the <c>Int32</c> parameter <c>:foo</c> by calling /// <code> ! /// SetParameter("foo", foo, NHibernate.Int32); /// </code> /// for example. A name may appear multiple times in the query string. /// </para> /// <para> ! /// JDBC-stype <c>?</c> parameters are also supported. To bind a value to a JDBC-style ! /// parameter use a set method that accepts an <c>int</c> positional argument - numbered from /// zero. /// </para> /// <para> ! /// You may not mix and match JDBC-style parameters and named parameters in the same query. /// </para> /// <para> --- 28,42 ---- /// to the <c>Int32</c> parameter <c>:foo</c> by calling /// <code> ! /// SetParameter("foo", foo, NHibernateUtil.Int32); /// </code> /// for example. A name may appear multiple times in the query string. /// </para> /// <para> ! /// Unnamed parameters <c>?</c> are also supported. To bind a value to an unnamed ! /// parameter use a Set method that accepts an <c>Int32</c> positional argument - numbered from /// zero. /// </para> /// <para> ! /// You may not mix and match unnamed parameters and named parameters in the same query. /// </para> /// <para> |