CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 9/7/2005 12:12:37 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 236 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
Schelloeh
Asp.Net User
Using Transactions in Enterprise Library9/7/2005 12:12:37 PM

0

Hi all,

I am just rewriting my SQL code to use Enterprise Library (version from Jund 2005) instead. Is there any documentation or knowledge on how to use transactions with EL? Any help welcome. I have some need of transactions in my application (inserting a record and then inserting several access rights for this record, updating a header record after inserting the line records, etc. for example). All this is done in several procedures (which are used in diverse places, so for example the adding of an access record happens on insert and update).

Thanks a lot,
BS
Triax
Asp.Net User
Re: Using Transactions in Enterprise Library9/12/2005 3:09:41 AM

-1

OK, this is going to sound like I'm spamming the ng, but that is not my intention. I'm only answering the question.

I have an architecture built on the Enterprise Library called EasyObjects.NET. In the base class I have a LoadFromSql() function (used to call custom stored procedures) that automatically participates in the current transaction, so it is possible to do what you are asking. Here's a partial listing from that function:

            TransactionManager txMgr = TransactionManager.ThreadTransactionMgr();

            try
            {
                //  Create the Database object, using the default database service. The
                //  default database service is determined through configuration.
                Database db = GetDatabase();

                ...<snipped>

                IDbTransaction tx = txMgr.GetTransaction(db);
                DataSet ds;
                if ((tx == null))
                {
                    ds = db.ExecuteDataSet(dbCommandWrapper);
                }
                else
                {
                    ds = db.ExecuteDataSet(dbCommandWrapper, tx);
                }
                Load(ds);
            }

See the EasyObjects.NET home page to download the full source so you can see how it's done. There's also a non-EasyObjects example in the Data Access Quick Start.

HTH


Matthew Noonan

Noonan Consulting Inc.
EasyObjects.NET - The O/RM architecture for the Enterprise Library
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
The Definitive Guide to the Microsoft Enterprise Library Authors: Keenan Newton, Pages: 492, Published: 2007
Java servlet and JSP cookbook Authors: Bruce W. Perry, Pages: 723, Published: 2004
Professional ASP.NET 2.0 databases Authors: Thiru Thangarathinam, Pages: 504, Published: 2007
Pro ADO.NET 2.0 Authors: Sahil Malik, Pages: 561, Published: 2005
Expert ASP.NET 2.0: advanced application design Authors: Dominic Selly, Andrew Troelsen, Tom Barnaby, Pages: 459, Published: 2005

Web:
Transaction and Connection Closing in Enterprise library january 2006 How Can I handle Transaction and Connetion in Enterprise library january 2006. We are using Enterprise Library on our ASP.NET project. ...
Using Transactions in Enterprise Library - ASP.NET Forums I am just rewriting my SQL code to use Enterprise Library (version from Jund 2005) instead. Is there any documentation or knowledge on how ...
The Enterprise Library Data Access Application Block, Part 3 This month, I will demonstrate several ways the Enterprise Library DAAB can modify .... When using transactions, it is best to keep them open for as short a ...
TransactionScope and Enterprise Library 3.0 Data Access ... Jan 27, 2007 ... One of the cool new features added in the Enterprise Library 3.0 Data Access ... This means that we avoid a Distributed Transaction since only one connection is used ... @OrderDate)"; using (TransactionScope scope = ...
Using the Enterprise Library Data Access Block for .NET 2.0 EnterpriseLibrary.Data namespace for the Data Access Block. .... That block starts the transaction using the BeginTransaction() method and also commits or ...

using Enterprise Library in DALC - ng.asp-net-forum ... NET Data Access code using the Microsoft Enterprise Library ... Aug 1, 2007 . ... using transactions in enterprise library ยท multi server environment? ...
The type or namespace name 'DbCommand' could not be found - ng.asp ... problem in error logging when using enterprise library 2006 error handling and logging ... using transactions in enterprise library ...
Problem using db.AddInParameter - ng.asp-net-forum ... Problem using db.AddInParameter, > ROOT > NEWSGROUP > Asp.Net ... transaction and connection closing in enterprise library january 2006 ...

Videos:
An Introduction to SQLite Google TechTalks May 31, 2006 Richard Hipp ABSTRACT SQLite is a small C library that implements a self-contained, embeddable, zero ...
Long Beach City Council Meeting Long Beach City Council Meeting
(GRN) WARNING! NEVER *EVER* JOIN THIS PROGRAM! http://www.GetWealthyWithShea.com Shea Korte grn (grn) "grn" global resorts network support at http://www.GetWealthyWithShea.com Waste ...
www.moldytoaster.com re in a galaxy to some provincial Belle Vue-terrace or Prospect-place; where they endeavour to forestall the bachelors with promiscuous orange ...
An Introduction to SQLite Google TechTalks May 31, 2006 Richard Hipp ABSTRACT SQLite is a small C library that implements a self-contained, embeddable, zero ...












visual web developer

finding out what user is using asp.net

major asp.net forms authentication vulnerability found

login issues godaddy

ldapauthentication in asp.net 2.0

finding windows login when using forms login

subdirectories not recursively secure using forms authentication???

asp.net form level authentication

strong naming my assembly

e-mailing create user & profile info and changing create user wizard defaults

querystring alternative and encrypting the querystring value

login redirect

urgent !!!! enterprise library 2.0, web.config and membership - database connection string issue

make my own join page?

web form auth question...

authorization problem: getting asked for credentials

best way to do authentication with a database and sub folders

asp.net and saving files to network appliance

httpcookie expires

need help with sign in screen

encryption algorhythm

could i in program check if directory is authenticated?

windows authentication

protect a file from download

back and refresh

auth db not usable in iis7?

lock out a user

custom login control

regularexpressionvalidator and '$'

creating login database on server

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT