Ejemplo n.º 1
0
        static void ConvertDelete(StringBuilder b, DeleteClause clause, ParamMode paramMode, SqlParamDic paramDic)
        {
            b.Append("DELETE FROM ");
            if (clause.Only)
            {
                b.Append("ONLY ");
            }

            b.Append(SqlSelect.TableNameToStr(clause.Table));

            if (clause.Using.Any())
            {
                b.AppendLine();
                b.Append("USING ");
                b.Append(string.Join(", ", clause.Using));
            }

            if (clause.Where != null)
            {
                b.AppendLine();
                ConvertWhere(b, clause, paramMode, paramDic);
            }
        }