Example #1
0
 internal static IsolationLevel GetTransationLevel(string key)
 {
     if (TransationKeys.ContainsKey(key))
     {
         return(TransationKeys[key]);
     }
     return(IsolationLevel.ReadCommitted);
 }
Example #2
0
 /// <summary>
 /// 当前 用户 是否开启了全局事务
 /// </summary>
 /// <returns></returns>
 internal static bool HasTransation(string key)
 {
     return(TransationKeys.ContainsKey(key));
 }