public MultitableSqlFilter <TEntity> OrGroup(SqlFilterBase filter) { var items = AddItem(SqlFilterItems.Or) .Add(SqlFilterItems.Build("(")) .AddRange(filter.FilterItems) .Add(SqlFilterItems.Build(")")); return(new MultitableSqlFilter <TEntity>(items)); }
//----------------------------------------------------------------------------------------------------- public SqlFilter <TEntity> AndGroup(SqlFilter <TEntity> filter) { var items = AddItem(SqlFilterItems.And) .Add(SqlFilterItems.Build("(")) .AddRange(filter.FilterItems) .Add(SqlFilterItems.Build(")")); return(new SqlFilter <TEntity>(items)); }