You are right, the old approach - with an object scope provider, requires the transactions to be handled manually. However, with the introduction of the new API, this is no longer needed. When you create a domain context, a new transaction starts automatically. To commit the transaction, simply call context.SaveChanges(
). This will save your changes and start a new transaction. If you want to revert the changes, call DataContext.ClearChanges()
I hope this answers your question. Please do not hesitate to contact us if you need more help.
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!