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.

13 Comments:

Anonymous dating service 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 matching said...

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

11/16/2005 4:25 AM  
Anonymous internet 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 advice 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 keyword 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 dating 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 date 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 friend 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 friendship 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 social networking 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 instant 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 commit 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