Sunday, May 15, 2005

[Opf3] Transactions

The framework supports also transactions, if the underlying storage does. The following example shows how to use transactions in Opf3:


ObjectContext context = new ObjectContext(new AccessStorage(@"C:\", "northwind.mdb"));

context.StartTransaction();
try
{
    // Load or save objects to the storage.
    // Commit the transaction.
    context.Commit();
}
catch (Exception ex)
{
    // Roll the transaction back.
    context.Rollback();
    // Do something else.
}


It's recommended to use the ObjectContext's methods to start, rollback or commit the transactions. If the storage does not support transactions those calls are ignored.

12 Comments:

Anonymous Anonymous said...

Hey everyone! Cool site! The customer support seems good and the technology jobs are endless. Maybe I will have a better directmatch searching for human resources
since my keyword "customer care jobs" did not fit as intended.
Glad I found you! Keep on keepin on!

11/15/2005 4:05 AM  
Anonymous Anonymous said...

John, hope all is well with your" match" search.
Maybe you can find looking for "careers" or jobs at www.directmatch4free.com
Just make sure you come back to this site to let us know how you are doing!

11/25/2005 1:34 AM  
Anonymous Anonymous said...

Hey everyone! Cool site! The customer support seems good and the technology jobs are endless. Maybe I will have a better directmatch searching for human resources
since my keyword "customer care jobs" did not fit as intended.
Glad I found you! Keep on keepin on!

11/30/2005 9:02 AM  
Anonymous Anonymous said...

Hey international friends! Cool site! The customer support seems good and the dating service maybe endless. Maybe I will have a better keyword, searching for match maker since my keyword "instant" did not fit as intended.
Glad I found you! Keep on keepin on!

12/01/2005 4:38 AM  
Anonymous Anonymous said...

Hey everyone! Cool site! The customer support seems good and the technology jobs are endless. Maybe I will have a better directmatch searching for human resources
since my keyword "customer care jobs" did not fit as intended.
Glad I found you! Keep on keepin on!

12/06/2005 4:15 PM  
Anonymous Anonymous said...

Hey everyone! Cool site! The customer support seems good and the technology jobs are endless. Maybe I will have a better directmatch searching for human resources
since my keyword "customer care jobs" did not fit as intended.
Glad I found you! Keep on keepin on!

12/07/2005 8:32 PM  
Anonymous Anonymous said...

Thank you for your wonderful advice. Although I did not find admin jobs as a custom directmatch to your internet site, I did however enjoy the matching fun IM from other posts. www.directmatch4free.com
Thanks again for your friends!

12/09/2005 8:54 AM  
Anonymous Anonymous said...

John, hope all is well with your" match" search.
Maybe you can find looking for "careers" or jobs at www.directmatch4free.com
Just make sure you come back to this site to let us know how you are doing!

12/10/2005 12:48 PM  
Anonymous Anonymous said...

Hey everyone! Cool site! The customer support seems good and the technology jobs are endless. Maybe I will have a better directmatch searching for human resources
since my keyword "customer care jobs" did not fit as intended.
Glad I found you! Keep on keepin on!

12/12/2005 5:18 PM  
Anonymous Anonymous said...

Hey everyone! Cool site! The customer support seems good and the technology jobs are endless. Maybe I will have a better directmatch searching for human resources
since my keyword "customer care jobs" did not fit as intended.
Glad I found you! Keep on keepin on!

12/13/2005 9:23 AM  
Anonymous Anonymous said...

John, hope all is well with your" date" search.
Maybe you can find looking for "dating service" at www.directmatch4free.com
Just make sure you commit to this site to let us know how you are doing!

12/13/2005 6:57 PM  
Anonymous Anonymous said...

John, hope all is well with your" date" search.
Maybe you can find looking for "dating service" at www.directmatch4free.com
Just make sure you commit to this site to let us know how you are doing!

12/15/2005 3:41 PM  

Post a Comment

<< Home