1234567891011121314151617181920212223 |
- using FreeSql;
- using System;
- using System.Data;
- namespace Admin.Core.Common.Attributes
- {
- /// <summary>
- /// 启用事物
- /// </summary>
- [AttributeUsage(AttributeTargets.Method, Inherited = true)]
- public class TransactionAttribute : Attribute
- {
- /// <summary>
- /// 事务传播方式
- /// </summary>
- public Propagation Propagation { get; set; } = Propagation.Required;
- /// <summary>
- /// 事务隔离级别
- /// </summary>
- public IsolationLevel? IsolationLevel { get; set; }
- }
- }
|