CodeSmith Community
Your Code. Your Way. Faster!

EntityTransactionModule

Latest post 12-17-2006 9:43 PM by Robert Hinojosa. 7 replies.
  • 11-14-2006 10:11 AM

    EntityTransactionModule

    I'm new to this forum, but I have made some advance on nettiers :)

     How can I configure my web.config for having multiple databases, specifically on the section for the EntityTransactionModule?
     

    I saw this post, but I need two databases on the same web.config. 

    http://community.codesmithtools.com/forums/thread/12406.aspx

     

     

    • Post Points: 35
  • 11-14-2006 12:05 PM In reply to

    Re: EntityTransactionModule

    Hi,

    This is to switch at runtime,
    http://community.codesmithtools.com/forums/permalink/12166/12166/ShowThread.aspx#12166

    This is to configure two of them through the web.config, which i believe is what you want.
    http://community.codesmithtools.com/forums/thread/12847.aspx


    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 35
  • 11-14-2006 1:37 PM In reply to

    Re: EntityTransactionModule

    Thanks for reply.

    Particularly for these section what could be the config for two databases:

    <httpModules>
                <!--
                    Enable transaction-per-request pattern;  This module allows a single TransactionManager to be shared by
                    all data access operations executed during a page request.  Used by the EntityDataSource control when
                    the EntityDataSource.EnableTransaction property is set to True.
                -->
                <add name="EntityTransactionModule" type="MyNSpace.MyDB.Web.Data.EntityTransactionModule, MyNSpace.MyDB.Web"/>
            </httpModules>

    • Post Points: 5
  • 11-15-2006 7:06 PM In reply to

    Re: EntityTransactionModule

    Please some comment ;)
    • Post Points: 35
  • 11-17-2006 11:10 AM In reply to

    Re: EntityTransactionModule

    Hi,

    Since you're using multiple databases, you should not use the implicit transactions, so you would have to add EnableTransaction=False to the DataSourceControls that you use it with.  You would then roll your own transaction management using the ConnectionScope class of your Service/domain layer.

    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 35
  • 12-04-2006 5:47 PM In reply to

    • Pofo
    • Top 500 Contributor
    • Joined on 11-28-2006
    • Posts 10
    • Points 200

    Re: EntityTransactionModule

    Hi, I have got our code talking to 2 databases but having the EntityTransaction module means its only managing one of the databases. How do I go about rolling my own transaction management using the connectionscope class?
     

     

    • Post Points: 5
  • 12-17-2006 8:22 PM In reply to

    • Pofo
    • Top 500 Contributor
    • Joined on 11-28-2006
    • Posts 10
    • Points 200

    Re: EntityTransactionModule

    anyone?
    • Post Points: 35
  • 12-17-2006 9:43 PM In reply to

    Re: EntityTransactionModule


    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 5
Page 1 of 1 (8 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems