/// <inheritdoc />
            public void RemoveAll <TEntity>()
                where TEntity : class
            {
                ITransactionContracts.RemoveAll <TEntity>(this);

                this.connection.DeleteAll <TEntity>();
            }
            /// <inheritdoc />
            public void RemoveAll <TEntity>(IEnumerable <TEntity> entities)
                where TEntity : class
            {
                ITransactionContracts.RemoveAll(this, entities);

                foreach (var entity in entities)
                {
                    this.connection.Delete(entity);
                }
            }
Exemplo n.º 3
0
        /// <inheritdoc />
        public void RemoveAll()
        {
            ITransactionContracts.RemoveAll(this);

            this.transaction.RemoveAll <TEntity>();
        }
Exemplo n.º 4
0
        /// <inheritdoc />
        public void RemoveAll(IEnumerable <TEntity> entities)
        {
            ITransactionContracts.RemoveAll(this, entities);

            this.transaction.RemoveAll(entities);
        }