SqlAnalysis/AnalysisOptions.cs

(开头部分) 2KB

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

using System.Collections.Generic;
namespace SqlAnalysis
{
    public enum SQLAction
    {
        SELECT, UPDATE, INSERT, DELETE, CONDITION, Other
    }
    public class AnalysisOptions : OptionBase
    {
        public int Top { get; set; }
        public string Value { get; set; }
        public bool IsDistinct { get; set; }
        public SortBy OrderBy { get; set; }
        public Group GroupBy { get; set; }
        public Dictionary<string, string> AliasTableMap { get; set; }
        public SQLAction Action { get; set; }

        public List<JoinOption> JoinOptions { get; set; }

    }
    public class Group
    {
        public string[] Fields { get; set; }
        public List<ConditionGroup> Wheres { get; set; }
    }

    public class SortBy
    {
        public string[] Fields { get; set; }
        public string OrderType { get; set; }
    }

    public class JoinOption : OptionBase
    {
        public string JoinType { get; set; }
    }
    public class OptionBase
    {
        public string Alias { get; set; }
        public string TableName { get; set; }
        public bool IsScope { get; set; }
        public string[] Fields { get; set; }
        public List<ConditionGroup> Wheres { get; set; }
    }

    public class Condition
    {
        public bool IsLeftScope { get; set; }
        public string LeftScope { get; set; }
        public string LeftFN { get; set; }
        public string LeftAlias { get; set; }
        public string LeftField { get; set; }
        public bool IsRightScope { get; set; }
        public string RightScope { get; set; }
        public string RightFN { get; set; }
        public string RightAlias { get; set; }
        public string RightField { get; set; }
        public string RightAlias2 { get; set; }
        public string RightField2 { get; set; }
        public string Logic { get; set; }
后面还有 9 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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