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