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; } }
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; } } }