mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	Merge branch 'master' of https://github.com/dotnetcore/FreeSql
This commit is contained in:
		@@ -111,7 +111,7 @@ namespace FreeSql
 | 
				
			|||||||
            var isCommited = false;
 | 
					            var isCommited = false;
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (_tran != null)
 | 
					                if (_tran != null && _tran.Connection != null)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    _tran.Commit();
 | 
					                    _tran.Commit();
 | 
				
			||||||
                    isCommited = true;
 | 
					                    isCommited = true;
 | 
				
			||||||
@@ -140,7 +140,7 @@ namespace FreeSql
 | 
				
			|||||||
            var isRollbacked = false;
 | 
					            var isRollbacked = false;
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (_tran != null)
 | 
					                if (_tran != null && _tran.Connection != null)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    _tran.Rollback();
 | 
					                    _tran.Rollback();
 | 
				
			||||||
                    isRollbacked = true;
 | 
					                    isRollbacked = true;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user