.NET Transactional File Manager
Net File Manager Transactional
2023-09-14 08:57:24 时间
.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(); }
相关文章
- .net 温故知新:【9】.NET日志记录 ILogger使用和原理
- 360、火绒等第三方安全软件拦截cloudbase-init、tat的net user命令设置密码
- 宝塔面板Linux系统通过Docker部署VB.NET Asp.Net Core WebAPI应用
- .Net 7 被Microsoft的开源免费PowerToys工具独立附带
- ORA-01251: Unknown File Header Version read for file number string ORACLE 报错 故障修复 远程处理
- ORA-19813: cannot have unavailable file string in DB_RECOVERY_FILE_DEST ORACLE 报错 故障修复 远程处理
- 数据库使用.NET连接MySQL数据库(net连接mysql)
- .net搭建ASP.NET应用程序在Linux系统上(linux搭建asp)
- ASP.NET WebForm也可以这样用Ajax(程序猿,你知道不)
- NET与Oracle携手走向未来(.net 对oracle)
- Net平台下MySQL数据库操作实践(.net mysql操作)
- ASP.NET中利用存储过程实现模糊查询
- ASP.NET中用healthMonitor属性用法
- asp.net自制的单选、多选列表实现代码
- 答你所问.NET小常识方便学习asp.net的朋友
- .Net中导出数据到Excel(asp.net和winform程序中)
- ASP.NET清除模式窗口数据缓存的操作方式
- .net读取非标准配置文件的小例子