src/SSCMS.Core/StlParser/StlElement/StlQuery.Others.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using SqlKata;
using SSCMS.Core.StlParser.Models;
using SSCMS.Utils;

namespace SSCMS.Core.StlParser.StlElement
{
    public static partial class StlQuery
    {
        private static void Select(Query query, QueryInfo queryInfo)
        {
            if (!string.IsNullOrEmpty(queryInfo.Value))
            {
                query.Select(ListUtils.GetStringList(queryInfo.Value).ToArray());
            }
        }

        private static void From(Query query, QueryInfo queryInfo)
        {
            if (!string.IsNullOrEmpty(queryInfo.Value))
            {
                query.From(queryInfo.Value);
            }
        }

        private static void Limit(Query query, QueryInfo queryInfo)
        {
            if (!string.IsNullOrEmpty(queryInfo.Value))
            {
                query.Limit(TranslateUtils.ToInt(queryInfo.Value));
            }
        }

        private static void Offset(Query query, QueryInfo queryInfo)
        {
            if (!string.IsNullOrEmpty(queryInfo.Value))
            {
                query.Offset(TranslateUtils.ToInt(queryInfo.Value));
            }
        }

        private static void Take(Query query, QueryInfo queryInfo)
        {
            if (!string.IsNullOrEmpty(queryInfo.Value))
            {
                query.Take(TranslateUtils.ToInt(queryInfo.Value));
            }
        }

        private static void Skip(Query query, QueryInfo queryInfo)
        {
            if (!string.IsNullOrEmpty(queryInfo.Value))
            {
                query.Skip(TranslateUtils.ToInt(queryInfo.Value));
            }
        }

        private static void ForPage(Query query, QueryInfo queryInfo)
        {
            if (!string.IsNullOrEmpty(queryInfo.Value))
            {
后面还有 39 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。