mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 ISelect OrderByIf 方法 #446;
This commit is contained in:
		@@ -160,6 +160,8 @@ namespace FreeSql.Internal.CommonProvider
 | 
			
		||||
            _tables[0].Parameter = column.Parameters[0];
 | 
			
		||||
            return this.InternalOrderByDescending(column.Body);
 | 
			
		||||
        }
 | 
			
		||||
        public ISelect<T1> OrderByIf<TMember>(bool condition, Expression<Func<T1, TMember>> column, bool descending = false) =>
 | 
			
		||||
            descending ? this.OrderByDescending(condition, column) : this.OrderBy(condition, column);
 | 
			
		||||
 | 
			
		||||
        public decimal Sum<TMember>(Expression<Func<T1, TMember>> column)
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user