示例#1
0
        /// <summary>
        /// Execute a physically delete query
        /// </summary>
        /// <param name="entity">identify entity</param>
        /// <returns></returns>
        public async Task <int> DeletePhysical(T entity)
        {
            var    dynamicParameters = new DynamicParameters();
            string query             = _queryHelper.DeletePhysicalQuery(entity, ref dynamicParameters);

            return(await _connection.ExecuteAsync(
                       query,
                       dynamicParameters,
                       commandType : CommandType.Text,
                       transaction : _unitOfWork.Transaction));
        }