Esempio n. 1
0
        private static SuggestedKeywordClause CreateKeywordClause(TerminalCandidate candidate)
        {
            var keywordClause = new SuggestedKeywordClause {
                TerminalId = candidate.Id
            };

            switch (candidate.Id)
            {
            case Terminals.Group:
                return(keywordClause.WithText("GROUP BY"));

            case Terminals.Order:
                return(keywordClause.WithText("ORDER BY"));

            case Terminals.Partition:
                return(keywordClause.WithText("PARTITION BY"));

            case Terminals.Connect:
                return(keywordClause.WithText("CONNECT BY"));

            case Terminals.SetMinus:
                return(keywordClause.WithText("MINUS"));

            default:
                return(keywordClause.WithText(Terminals.AllTerminals[candidate.Id]));
            }
        }
Esempio n. 2
0
 public bool Equals(TerminalCandidate other)
 {
     return(string.Equals(Id, other.Id));
 }
Esempio n. 3
0
		public bool Equals(TerminalCandidate other)
		{
			return string.Equals(Id, other.Id);
		}