Beispiel #1
0
 internal void AddSort(IRoleType sortRoleType, SortDirection sortDirection)
 {
     if (this.subSorter == null)
     {
         this.subSorter = new AllorsExtentSortSql(this.session, sortRoleType, sortDirection);
     }
     else
     {
         this.subSorter.AddSort(sortRoleType, sortDirection);
     }
 }
Beispiel #2
0
 internal void AddSort(IRoleType sortRoleType, SortDirection sortDirection)
 {
     if (this.subSorter == null)
     {
         this.subSorter = new AllorsExtentSortSql(this.session, sortRoleType, sortDirection);
     }
     else
     {
         this.subSorter.AddSort(sortRoleType, sortDirection);
     }
 }
Beispiel #3
0
        public override Extent AddSort(IRoleType roleType, SortDirection sortDirection)
        {
            this.LazyLoadFilter(); // This will upgrade a strategy extent to a full extent
            this.FlushCache();
            if (this.sorter == null)
            {
                this.sorter = new AllorsExtentSortSql(this.Session, roleType, sortDirection);
            }
            else
            {
                this.sorter.AddSort(roleType, sortDirection);
            }

            return(this);
        }
Beispiel #4
0
        internal void BuildOrder(AllorsExtentSortSql sorter, Mapping mapping, AllorsExtentStatementSql statement)
        {
            if (sorter.Equals(this))
            {
                statement.Append(" ORDER BY " + this.roleType.SingularFullName + "_R" + ".R");
            }
            else
            {
                statement.Append(" , " + this.roleType.SingularFullName + "_R" + ".R");
            }

            statement.Append(this.sortDirection == SortDirection.Ascending ? " ASC " : " DESC ");

            if (this.subSorter != null)
            {
                this.subSorter.BuildOrder(sorter, mapping, statement);
            }
        }
Beispiel #5
0
        internal void BuildOrder(AllorsExtentSortSql sorter, Mapping mapping, AllorsExtentStatementSql statement)
        {
            if (sorter.Equals(this))
            {
                statement.Append(" ORDER BY " + this.roleType.SingularFullName + "_R" + ".R");
            }
            else
            {
                statement.Append(" , " + this.roleType.SingularFullName + "_R" + ".R");
            }

            statement.Append(this.sortDirection == SortDirection.Ascending ? " ASC " : " DESC ");

            if (this.subSorter != null)
            {
                this.subSorter.BuildOrder(sorter, mapping, statement);
            }
        }
Beispiel #6
0
        public override Extent AddSort(IRoleType roleType, SortDirection sortDirection)
        {
            this.LazyLoadFilter(); // This will upgrade a strategy extent to a full extent
            this.FlushCache();
            if (this.sorter == null)
            {
                this.sorter = new AllorsExtentSortSql(this.Session, roleType, sortDirection);
            }
            else
            {
                this.sorter.AddSort(roleType, sortDirection);
            }

            return this;
        }