Category Archive for: Transactions

Transactions with Windows Vista and Windows Server 2008

You can write a custom durable resource manager that works with the File and Registry classes. A filebased durable resource manager can copy the original file and write changes to the temporary file inside a temporary directory to make the changes persistent. When committing the transaction, the original file is replaced by the temporary file. Writing custom…

Read More →

Custom Resource Managers

One of the biggest advantages of the new transaction model is that it is relatively easy to. create custom resource managers that participate in the transaction. A resource manager does net manage only durable resources but can also manage vela tile or in-memory resources – fer example, a simple int and a generic list. Figure 22-5 shows the…

Read More →

Isolation Level

At the beginning of this chapter, you saw the ACID properties used to describe transactions. The letter I (Isolation) of ACID is not always fully required. For performance reasons, you might reduce isolation requirements, but you must be aware of the issues that you will encounter if you change the isolation level. The problems that you can encounter…

Read More →

System. Transactions

The namespace System. Transactions has been available since .NET 2.0 and brings a new  ransaction programining model to .NET applications. Figure 22-3 shows a Visual Studio class diagram with the transaction classes, and their relationships, from the System. Transactions namespaces Transaction, CommittableTransaction,DependentTransaction,andsubordinateTransaction. Transaction is the base class of all transaction classes and defines properties, methods, and events available…

Read More →

Traditional ‘Transactions

Before System. Transaction was released, you could create transactions directly with AOO.NET, or you could do transactions with the help of components, attributes, and the COM+ runtime, which is covered in the namespace System. EnterpriseServices. To show you how the new transaction model compares to the traditional ways of working with transactions, we present a short look at…

Read More →

Database and Entity Classes

The sample database CourseManagement that is used with the transactions in this chapter is defined by the-structure from Figure 22-2. The table Courses contains information about courses: course numbers and titles; for example, the course number 2124with the title Programming Ct. The table CourseDa tes contains ‘the date of specific courses and is linked to the Courses table.…

Read More →

Overview

What are transactions? Think about ordering a book from a web site. The book-ordering process removes the book you want to buy from stock and puts it in your order box, and the cost of your book is charged to your credit card. With these two actions, either both actions should complete. successfully or neither of these…

Read More →

Transactions

All or nothing – this is the main characteristic of a transaction. When writing a few records, either all are written, or everything will be undone. If there is even one failure when writing one record, all the other things that.are done within the transaction will be rolled back. Transactions are commonly used with databases, but with…

Read More →

Back to Top