Ejemplo n.º 1
0
        protected void GenerateFrom(ISqlDumper dmp)
        {
            if (From.All(x => x.Source == null))
            {
                return;
            }
            dmp.Put("&n^from &>");

            bool wasfromItem = false;

            foreach (var fromItem in From)
            {
                //if (fromItem.Source == null) throw new Exception("DBSH-00000 Source of FROM is NULL");
                if (fromItem.Source == null)
                {
                    continue;
                }
                if (wasfromItem)
                {
                    dmp.Put(",&n");
                }
                fromItem.GenSql(dmp);
                wasfromItem = true;
            }
            dmp.Put("&<");
        }