/// <summary>
        /// Deletes a list of records in the database.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="whereConditions"></param>
        /// <returns></returns>
        public int DeleteList <T>(object whereConditions)
        {
            SetSimpleCRUD();

            int ret = 0;

            using (var conn = new SqlConnection(_connectionString))
            {
                conn.Open();
                ret = _simpleCRUD.DeleteList <T>(conn, whereConditions);
                conn.Close();
            }
            return(ret);
        }
 public virtual int DeleteList(object whereConditions, IDbTransaction transaction = null, int?commandTimeout = null)
 {
     return(SimpleCRUD.DeleteList <TModel>(_connection, whereConditions, transaction, commandTimeout));
 }
 public virtual int DeleteList(string conditions, object parameters = null, IDbTransaction transaction = null, int?commandTimeout = null)
 {
     return(SimpleCRUD.DeleteList <TModel>(_connection, conditions, parameters, transaction, commandTimeout));
 }