.NET Transactional File Manager

简介: .NET Transactional File Manager http://transactionalfilemgr.codeplex.com/ 对文件系统操作,比如copy, move, delete ,加入事务支持。

.NET Transactional File Manager

http://transactionalfilemgr.codeplex.com/

对文件系统操作,比如copy, move, delete ,加入事务支持。

 

Project Description
Transactional File Manager is a .NET API that supports including file system operations such as file copy, move, delete, append, etc. in a transaction. It's an implementation of System.Transaction.IEnlistmentNotification (works with System.Transactions.TransactionScope).

This library allows you to wrap file system operations in transactions like this:

// Wrap a file copy and a database insert in the same transaction
TxFileManager fileMgr = new TxFileManager();
using (TransactionScope scope1 = new TransactionScope())
{
    // Copy a file
    fileMgr.Copy(srcFileName, destFileName);

    // Insert a database record
    dbMgr.ExecuteNonQuery(insertSql);

    scope1.Complete();
} 

 

目录
相关文章
java.net.SocketException: Unexpected end of file from server
java.net.SocketException: Unexpected end of file from server
|
存储 Go C#
【.NET Core】深入理解IO之File类
【.NET Core】深入理解IO之File类
260 6
|
安全 C# 开发者
【.Net实用方法总结】 整理并总结System.IO中File类及其方法介绍
本文主要介绍System.IO命名空间的File 类,介绍其常用的方法和示例说明。
【.Net实用方法总结】 整理并总结System.IO中File类及其方法介绍
|
Oracle 网络协议 关系型数据库
Oracle Net Manager使用
本文目录 1. 简介 2. 服务名的原理 3. 服务名配置的具体步骤 4. 总结
689 0
Oracle Net Manager使用
|
缓存 NoSQL Redis
Windows下Redis缓存服务器的使用 .NET StackExchange.Redis Redis Desktop Manager
原文:Windows下Redis缓存服务器的使用 .NET StackExchange.Redis Redis Desktop Manager Redis缓存服务器是一款key/value数据库,读110000次/s,写81000次/s,因为是内存操作所以速度飞快,常见用法有存用户令牌、短信验证码等...
1867 0