Hi
Thanks for your reply ,.
If i understand correctly ,we have to use inherits in nested
transcation .. else
we can use  scope.new ...
regards

On Aug 12, 11:42 am, Martijn van Rheenen <[email protected]> wrote:
> It seems like the default for a TransactionScope is 'OnDispose.Commit', so
> it should commit automatically upon Dispose() (ie: the end of the using()
> block).
>
> Though I did not look into what mode the TransactionScope is in, if it is
> created with TransactionMode.Inherits, of which the documentation states:
> "Inherits a transaction previously created on the current context.". So,
> what does it do if no Transaction was previously created?
>
>
>
> On Thu, Aug 12, 2010 at 7:02 AM, raghavsri <[email protected]> wrote:
> > Hi,
>
> > I am using tranaction scope as follows :
>
> >  using (new SessionScope(FlushAction.Never))
> >                {
>
> >                    try
> >                    {
> >                        using (transactionScope = new
> > TransactionScope(TransactionMode.Inherits))
> >                        {
> >                             obj.Save()
> >                        }
> >                    }
> >                    catch { }
> >                   }
>
> > Should i need to call transactionScope.VoteCommit(); after save
> > operation successful.. ?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Castle Project Users" group.
> > To post to this group, send email to [email protected]
> > .
> > To unsubscribe from this group, send email to
> > [email protected]<castle-project-users%2bun­[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/castle-project-users?hl=en.- Hide quoted text 
> >-
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to