Example #1
0
        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));
        }
Example #2
0
        //-----------------------------------------------------------------------------------------------------

        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));
        }