You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
538 B
22 lines
538 B
using FreeSql;
|
|
using System.Data;
|
|
|
|
namespace Znyc.CloudCar.Utility.Attributes
|
|
{
|
|
/// <summary>
|
|
/// 启用事物
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public class TransactionAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// 事务传播方式 REQUIRED
|
|
/// </summary>
|
|
public Propagation Propagation { get; set; }
|
|
|
|
/// <summary>
|
|
/// 事务隔离级别
|
|
/// </summary>
|
|
public IsolationLevel? IsolationLevel { get; set; }
|
|
}
|
|
}
|
|
|