소스 검색

事物属性说明

xiaoxue 5 년 전
부모
커밋
75ce827304
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      Admin.Core.Common/Attributes/TransactionAttribute.cs

+ 7 - 0
Admin.Core.Common/Attributes/TransactionAttribute.cs

@@ -10,7 +10,14 @@ namespace Admin.Core.Common
     [AttributeUsage(AttributeTargets.Method, Inherited = true)]
     public class TransactionAttribute : Attribute
     {
+        /// <summary>
+        /// 事务传播方式
+        /// </summary>
         public Propagation Propagation { get; set; } = Propagation.Requierd;
+
+        /// <summary>
+        /// 事务隔离级别
+        /// </summary>
         public IsolationLevel? IsolationLevel { get; set; }
     }
 }