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