Skip to content

Commit 0cf3fce

Browse files
Obsolete fixes in documentation.
1 parent 2fe11e9 commit 0cf3fce

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

doc/reference/modules/architecture.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@
132132
<listitem>
133133
<para>
134134
(Optional) A factory for ADO.NET connections and commands. Abstracts application
135-
from the concrete vendor-specific implementations of <literal>IDbConnection</literal>
136-
and <literal>IDbCommand</literal>. Not exposed to application, but can be
135+
from the concrete vendor-specific implementations of <literal>DbConnection</literal>
136+
and <literal>DbCommand</literal>. Not exposed to application, but can be
137137
extended/implemented by the developer.
138138
</para>
139139
</listitem>

doc/reference/modules/basic_mapping.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@
681681

682682
<para>
683683
Unfortunately, you can't use <literal>hilo</literal> when supplying your own
684-
<literal>IDbConnection</literal> to NHibernate. NHibernate must be able to
684+
<literal>DbConnection</literal> to NHibernate. NHibernate must be able to
685685
fetch the "hi" value in a new transaction.
686686
</para>
687687
</sect3>
@@ -3188,7 +3188,7 @@
31883188
NHibernate's schema evolution tools, to provide the ability to fully define
31893189
a user schema within the NHibernate mapping files. Although designed specifically
31903190
for creating and dropping things like triggers or stored procedures, really any
3191-
SQL command that can be run via a <literal>IDbCommand.ExecuteNonQuery()</literal>
3191+
SQL command that can be run via a <literal>DbCommand.ExecuteNonQuery()</literal>
31923192
method is valid here (ALTERs, INSERTS, etc). There are essentially two modes for
31933193
defining auxiliary database objects.
31943194
</para>

doc/reference/modules/configuration.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ Configuration cfg = new Configuration()
115115
obtain ADO.NET connections wherever it pleases:
116116
</para>
117117

118-
<programlisting><![CDATA[IDbConnection conn = myApp.GetOpenConnection();
119-
ISession session = sessions.OpenSession(conn);
118+
<programlisting><![CDATA[var conn = myApp.GetOpenConnection();
119+
var session = sessions.OpenSession(conn);
120120
121121
// do some data access work]]></programlisting>
122122

@@ -291,7 +291,7 @@ ISession session = sessions.OpenSession(conn);
291291
<literal>command_timeout</literal>
292292
</entry>
293293
<entry>
294-
Specify the default timeout of <literal>IDbCommands</literal>
294+
Specify the default timeout of <literal>DbCommand</literal>s
295295
generated by NHibernate.
296296
</entry>
297297
</row>

doc/reference/modules/manipulating_data.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ var problems = sess
160160
<para>
161161
These given <literal>Set</literal> parameters are used to bind the given values to the
162162
<literal>?</literal> query placeholders (which map to input
163-
parameters of an ADO.NET <literal>IDbCommand</literal>). Just
163+
parameters of an ADO.NET <literal>DbCommand</literal>). Just
164164
as in ADO.NET, you should use this binding mechanism in preference to string
165165
manipulation.
166166
</para>

doc/reference/modules/query_queryover.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ IList<CatSummary> catReport =
337337

338338
<para>
339339
In addition to projecting properties, there are extension methods to allow certain common dialect-registered
340-
functions to be applied. For example you can write the following to extract just the year part of a date:
340+
functions to be applied. For example you can write the following to get 3 letters named people.
341341
</para>
342-
<programlisting><![CDATA[ .Where(p => p.BirthDate.YearPart() == 1971)]]></programlisting>
342+
<programlisting><![CDATA[ .Where(p => p.FirstName.StrLength() == 3)]]></programlisting>
343343

344344
<para>
345345
The functions can also be used inside projections:

doc/reference/modules/query_sql.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ var pusList = query.SetString("name", "Pus%").List<Cat>();]]></programlisting>
588588
<itemizedlist spacing="compact">
589589
<listitem>
590590
<para>The procedure must return a result set. NHibernate will
591-
use <literal>IDbCommand.ExecuteReader()</literal> to obtain
591+
use <literal>DbCommand.ExecuteReader()</literal> to obtain
592592
the results.
593593
</para>
594594
</listitem>
@@ -657,7 +657,7 @@ var pusList = query.SetString("name", "Pus%").List<Cat>();]]></programlisting>
657657

658658
<para>The stored procedures are by default required to affect the same number
659659
of rows as NHibernate-generated SQL would. NHibernate uses
660-
<literal>IDbCommand.ExecuteNonQuery</literal> to retrieve the number of rows
660+
<literal>DbCommand.ExecuteNonQuery</literal> to retrieve the number of rows
661661
affected. This check can be disabled by using <literal>check="none"</literal>
662662
attribute in <literal>sql-insert</literal> element.
663663
</para>

doc/reference/modules/quickstart.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ finally
414414
NHibernate also offers an object-oriented <emphasis>query by criteria</emphasis> API
415415
that can be used to formulate type-safe queries, and the Hibernate Query Language (HQL),
416416
which is an easy to learn and powerful object-oriented extension to SQL.
417-
NHibernate of course uses <literal>IDbCommand</literal>s and parameter binding for all
417+
NHibernate of course uses <literal>DbCommand</literal>s and parameter binding for all
418418
SQL communication with the database. You may also use NHibernate's direct SQL query
419419
feature or get a plain ADO.NET connection from an <literal>ISession</literal> in rare
420420
cases.

0 commit comments

Comments
 (0)