Update of /cvsroot/springnet/Spring.Net/doc/reference/src
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9957
Modified Files:
dbprovider.xml logging.xml
Log Message:
SPRNET-693 Add MultiDelegatingDbProvider to main distribution to support easy access to multiple databases selected at runtime.
SPRNET-544 - Docs for Common.Logging point to netcommon sourceforge site instead of being repeated within spring documentation
update MySql 1.0 provider version
clean up using statements
Index: logging.xml
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/logging.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** logging.xml 10 Oct 2007 19:13:01 -0000 1.3
--- logging.xml 10 Oct 2007 20:59:13 -0000 1.4
***************
*** 27,34 ****
url="http://netcommon.sourceforge.net/doc-latest/reference/html/index.html">HTML</ulink>
, <ulink
! url="http://netcommon.sourceforge.net/doc-latest/reference/html/index.html">PDF</ulink>,
and <ulink
! url="http://netcommon.sourceforge.net/doc-latest/reference/htmlhelp/htmlhelp.chm">HTMLHelp</ulink>
! formats.</para>
</section>
</chapter>
\ No newline at end of file
--- 27,34 ----
url="http://netcommon.sourceforge.net/doc-latest/reference/html/index.html">HTML</ulink>
, <ulink
! url="http://netcommon.sourceforge.net/doc-latest/reference/pdf/commong-logging-reference.pdf">PDF</ulink>,
and <ulink
! url="http://netcommon.sourceforge.net/doc-latest/reference/htmlhelp/htmlhelp.chm">HTML
! Help</ulink> formats.</para>
</section>
</chapter>
\ No newline at end of file
Index: dbprovider.xml
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/dbprovider.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** dbprovider.xml 10 Oct 2007 19:13:00 -0000 1.12
--- dbprovider.xml 10 Oct 2007 20:59:13 -0000 1.13
***************
*** 217,221 ****
<para>This redirects any reference to an older version of the assembly
! MySql.Data to the version 1.0.10.1. </para>
</section>
--- 217,221 ----
<para>This redirects any reference to an older version of the assembly
! MySql.Data to the version 1.0.10.1.</para>
</section>
***************
*** 323,331 ****
</objects></programlisting>
! <para>TODO: The second option is to use a custom schema specific to your
! database. The case of using SqlServer is shown below.</para>
! <programlisting></programlisting>
</section>
</chapter>
\ No newline at end of file
--- 323,352 ----
</objects></programlisting>
+ </section>
! <section>
! <title>MultiDelegatingDbProvider </title>
! <para>There are use-cases in which there will need to be a runtime
! selection of the database to connect to among many possible candidates.
! This is often the case when there is the same schema installed in separate
! databases for different clients. The
! <classname>MultiDelegatingDbProvider</classname> implements the
! <classname>IDbProvider</classname> interface and provides an abstraction
! to the multiple databases and can be used in DAO layer such that the DAO
! layer is unaware of the switching between databases.
! <classname>MultiDelegatingDbProvider</classname> does it job by looking
! into thread local storage under the key dbProviderName. In this storage
! location should be stored the name of the dbProvider that is to be used
! for processing the request.
! <classname>MultiDelegatingDbProvider</classname> is configured using the
! dictionary property <literal>TargetDbProviders</literal>. The key of this
! dictionary contains the name of a dbProvider and its value is a dbProvider
! object. During request processing, once you have determined which target
! dbProvider should be use, in this example database1Providername, you
! should execute the following code
! <literal>LogicalThreadContext.SetData("dbProviderName",
! "database1ProviderName")</literal> and then call the data access layer.
! </para>
</section>
</chapter>
\ No newline at end of file
|