public override void AppendSortTerm(StringBuilder builder, DataAspect aspect, ClassSortTerm term)
 {
     if (term.Direction == EixoX.Data.SortDirection.Random)
         builder.Append(" NEWID()");
     else
         base.AppendSortTerm(builder, aspect, term);
 }
示例#2
0
 public virtual void AppendSortTerm(StringBuilder builder, DataAspect aspect, ClassSortTerm term)
 {
     if (term.Direction != EixoX.Data.SortDirection.Random)
     {
         AppendName(builder, aspect[term.Ordinal].StoredName);
         if (term.Direction == EixoX.Data.SortDirection.Descending)
             builder.Append(" DESC");
     }
 }