Beispiel #1
0
        //-----------------------------------------------------------------------------------------------------

        public SqlFilter <TEntity> WithParameterPrefix(string prefix)
        {
            var filter = new SqlFilter <TEntity>(FilterItems);

            filter.ParamPrefix = prefix;
            return(filter);
        }
Beispiel #2
0
        public SqlFilter <TEntity> WithAliases()
        {
            var filter = new SqlFilter <TEntity>(FilterItems);

            filter.MustBeWithoutAliases = false;
            return(filter);
        }
Beispiel #3
0
        //-----------------------------------------------------------------------------------------------------

        public SqlFilter <TEntity> OrGroup(SqlFilter <TEntity> filter)
        {
            var items = AddItem(SqlFilterItems.Or)
                        .Add(SqlFilterItems.Build("("))
                        .AddRange(filter.FilterItems)
                        .Add(SqlFilterItems.Build(")"));

            return(new SqlFilter <TEntity>(items));
        }
Beispiel #4
0
 public SqlFilter <TEntity> And(SqlFilter <TEntity> filter)
 {
     return(new SqlFilter <TEntity>(AddItem(SqlFilterItems.And).AddRange(filter.FilterItems)));
 }