/// <summary>
        /// Deletes a record or records in the database that match the object passed in asynchronously.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="entityToDelete"></param>
        /// <returns></returns>
        public async Task <int> DeleteAsync <T>(T entityToDelete)
        {
            SetSimpleCRUD();

            int ret = 0;

            using (var conn = new SqlConnection(_connectionString))
            {
                conn.Open();
                ret = await _simpleCRUD.DeleteAsync <T>(conn, entityToDelete);

                conn.Close();
            }
            return(ret);
        }
 public virtual Task <int> DeleteAsync(TModel entityToDelete, IDbTransaction transaction = null, int?commandTimeout = null)
 {
     return(SimpleCRUD.DeleteAsync <TModel>(_connection, entityToDelete, transaction, commandTimeout));
 }