コード例 #1
0
 public IDbContextTransaction BeginTransaction(IsolationLevel level = IsolationLevel.ReadUncommitted)// Snapshot
 {
     if (appDbContext == null)
     {
         InitDbContext();
     }
     return(appDbContext?.BeginTransaction(level));
 }
コード例 #2
0
        public void BeginTransaction(IsolationLevel level = IsolationLevel.ReadUncommitted) // Snapshot
        {
            if (_appDbContext == null)
            {
                InitDbContext();
            }

            _appDbContext?.BeginTransaction(level);
        }