Beispiel #1
0
        /// <summary>
        ///   Adds a new condition to the WHERE part of the query with an "AND" between.</summary>
        /// <param name="condition">
        ///   Condition.</param>
        /// <returns>
        ///   SqlDelete object itself.</returns>
        public SqlDelete Where(string condition)
        {
            if (condition == null || condition.Length == 0)
            {
                throw new ArgumentNullException("condition");
            }

            condition = SqlUpdate.RemoveT0Reference(condition);

            if (_where.Length > 0)
            {
                _where.Append(SqlKeywords.And);
            }

            _where.Append(condition);

            return(this);
        }