mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 UnitOfWork 静态属性 DebugBeingUsed,用于生产环境监视正在使用中的事务;
This commit is contained in:
		@@ -96,7 +96,9 @@ namespace FreeSql.Internal.CommonProvider
 | 
			
		||||
        }
 | 
			
		||||
        public IDelete<T1> Where(T1 item) => this.Where(new[] { item });
 | 
			
		||||
        public IDelete<T1> Where(IEnumerable<T1> items) => this.Where(_commonUtils.WhereItems(_table, "", items));
 | 
			
		||||
        public IDelete<T1> WhereDynamic(object dywhere) => this.Where(_commonUtils.WhereObject(_table, "", dywhere));
 | 
			
		||||
        public IDelete<T1> WhereDynamic(object dywhere, bool not = false) => not == false ?
 | 
			
		||||
            this.Where(_commonUtils.WhereObject(_table, "", dywhere)) :
 | 
			
		||||
            this.Where($"not({_commonUtils.WhereObject(_table, "", dywhere)})");
 | 
			
		||||
 | 
			
		||||
        public IDelete<T1> DisableGlobalFilter(params string[] name)
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
@@ -434,7 +434,9 @@ namespace FreeSql.Internal.CommonProvider
 | 
			
		||||
        }
 | 
			
		||||
        public IUpdate<T1> Where(T1 item) => this.Where(new[] { item });
 | 
			
		||||
        public IUpdate<T1> Where(IEnumerable<T1> items) => this.Where(_commonUtils.WhereItems(_table, "", items));
 | 
			
		||||
        public IUpdate<T1> WhereDynamic(object dywhere) => this.Where(_commonUtils.WhereObject(_table, "", dywhere));
 | 
			
		||||
        public IUpdate<T1> WhereDynamic(object dywhere, bool not = false) => not == false ?
 | 
			
		||||
            this.Where(_commonUtils.WhereObject(_table, "", dywhere)) :
 | 
			
		||||
            this.Where($"not({_commonUtils.WhereObject(_table, "", dywhere)})");
 | 
			
		||||
 | 
			
		||||
        public IUpdate<T1> DisableGlobalFilter(params string[] name)
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user