Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / C#

Transactional File Management in .NET

Rate me:
Please Sign up or sign in to vote.
4.44/5 (7 votes)
25 Aug 2006CPOL6 min read 48.2K   1.2K   25  
Transactional files, missing in Windows, allow file manipulation that can be rolled-back to the original state, and retain their integrity in case of failure. It can be used for any manipulation, including accelerated alternatives to database manipulation (to be discussed in a follow-up article).
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TransactionalFileSystem")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TransactionalFileSystem")]
[assembly: AssemblyCopyright("Copyright ©  2006")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("bb2ce11d-3208-4493-bf37-b28ba722d997")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Israel Israel
Israel Kehat is a technology consultant turning entrepreneur (look for several startups to launch by the end of 2006). He earns his keep as strategy consultant for Tourico Travel Holdings, active in the USA, Israel and Romania. He's also Chief Strategist for Affect (Technology Recruitment), CTO for Actus-Imago (media analysis and intelligence), and CEO for dSpot (Web 2.0 information management).

Comments and Discussions