Exemplo n.º 1
0
        public override void GenSql(ISqlDumper dmp, IDmlfHandler handler)
        {
            JoinType.GenSql(dmp);
            dmp.Put("&n");
            Reference.GenSqlDef(dmp, handler);
            dmp.Put(" ^on ");
            bool was = false;

            foreach (var cond in Conditions)
            {
                if (was)
                {
                    dmp.Put(" ^and ");
                }
                cond.GenSql(dmp, handler);
                was = true;
            }
        }
Exemplo n.º 2
0
 public override void GenSql(ISqlDumper dmp)
 {
     dmp.Put("&n");
     JoinType.GenSql(dmp);
     dmp.Put(" ");
     Reference.GenSqlDef(dmp);
     if (Conditions.Any())
     {
         dmp.Put(" ^on ");
         bool was = false;
         foreach (var cond in Conditions)
         {
             if (was)
             {
                 dmp.Put(" ^and ");
             }
             cond.GenSql(dmp);
             was = true;
         }
     }
 }