示例#1
0
        public string ToSql(SqlContext context)
        {
            SqlColumn column = context.GetColumn(Expression);

            return($"{column.ToSql(context)} {(Direction == SqlSortDirection.Descending ? "DESC" : "ASC")}");
        }
示例#2
0
        public string ToSql(SqlContext context)
        {
            SqlColumn column = context.GetColumn(Expression);

            return($"{column.ToSql(context)} {Operator} {Parameter}".Trim());
        }