public string ToSql(SqlContext context) { SqlColumn column = context.GetColumn(Expression); return($"{column.ToSql(context)} {(Direction == SqlSortDirection.Descending ? "DESC" : "ASC")}"); }
public string ToSql(SqlContext context) { SqlColumn column = context.GetColumn(Expression); return($"{column.ToSql(context)} {Operator} {Parameter}".Trim()); }