Ejemplo n.º 1
0
 public virtual void SetNext(ISqlPhrase phrase)
 {
     if (phrase != null)
     {
         Next = phrase;
     }
 }
Ejemplo n.º 2
0
        public string ParseToSql(ISqlPhrase phrase)
        {
            _sb.Append(SQL_SERVER_KEYWORD.Select);

            while (null != phrase)
            {
                if (phrase is SelectPhrase)
                {
                    ParseSelectPhrase(phrase as SelectPhrase);
                }
                else if (phrase is FromPhrase)
                {
                    ParseFromPhrase(phrase as FromPhrase);
                }
                else if (phrase is WherePhrase)
                {
                    ParseWherePhrase(phrase as WherePhrase);
                }

                phrase = phrase.Next;
            }

            return(_sb.ToString());
        }
Ejemplo n.º 3
0
 public string ParseToSql(ISqlPhrase phrase)
 {
     throw new NotImplementedException();
 }