mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	- 增加 IFreeSql.GlobalFilter 全局过滤器;
- 移除 TableAttribute.SelectFilter 功能;
This commit is contained in:
		@@ -87,12 +87,6 @@ namespace FreeSql.Sqlite.Curd
 | 
			
		||||
                if (!string.IsNullOrEmpty(_tables[0].Cascade))
 | 
			
		||||
                    sbnav.Append(" AND (").Append(_tables[0].Cascade).Append(")");
 | 
			
		||||
 | 
			
		||||
                foreach (var tb in _tables)
 | 
			
		||||
                {
 | 
			
		||||
                    if (tb.Type == SelectTableInfoType.Parent) continue;
 | 
			
		||||
                    if (string.IsNullOrEmpty(tb.Table.SelectFilter) == false)
 | 
			
		||||
                        sbnav.Append(" AND (").Append(tb.Table.SelectFilter.Replace("a.", $"{tb.Alias}.")).Append(")");
 | 
			
		||||
                }
 | 
			
		||||
                if (sbnav.Length > 0)
 | 
			
		||||
                {
 | 
			
		||||
                    sb.Append(" \r\nWHERE ").Append(sbnav.Remove(0, 5));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user