Example #1
0
        public void Delete(int id)
        {
            var expression = _expressionProvider.ProvideDeleteExpression(_tableName, id);

            var command = new SqlCommand(expression, _connection)
            {
                Transaction = _transaction
            };

            command.ExecuteNonQuery();
        }
Example #2
0
        public void Delete(int id)
        {
            var expression = _expressionProvider.ProvideDeleteExpression(_tableName, id);

            _connection.Execute(expression, null, _transaction);
        }