Example #1
0
        private void AppendFilter(string columnName, object value, Comparison whereOperator, WhereAppender appender)
        {
            DaoSearchFilter toAdd = new DaoSearchFilter();

            toAdd.AddParameter(columnName, value, whereOperator);
            this.AppendFilter(toAdd, appender);
        }
Example #2
0
        public static DaoObjectCollection <DaoType> LoadAll <DaoType>(int pageSize, DatabaseAgent agent) where DaoType : DaoObject, new()
        {
            DaoSearchFilter filter = new DaoSearchFilter();
            DaoType         proxy  = new DaoType();

            filter.AddParameter(proxy.IdColumnName, null, Comparison.NotEqualTo);
            return(new DaoObjectCollection <DaoType>(filter, pageSize, agent));
        }