transactionalattribute.cs
来自「C# 版本的一个三层商业架构」· CS 代码 · 共 19 行
CS
19 行
using System;
namespace CSLA
{
/// <summary>
/// Allows us to mark the DataPortal_xxx methods in our business
/// classes as transactional.
/// </summary>
/// <remarks>
/// When a method is marked as transactional, the DataPortal
/// mechanism runs the method within a COM+ transactional
/// context, so the data access is protected by a 2-phase
/// distributed transaction.
/// </remarks>
[AttributeUsage(AttributeTargets.Method)]
public class TransactionalAttribute : Attribute
{}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?