BExIS.Dlm.Services.Party.PartyManager.RemovePartyCustomAttriuteValue C# (CSharp) Метод

RemovePartyCustomAttriuteValue() публичный Метод

public RemovePartyCustomAttriuteValue ( IEnumerable entities ) : bool
entities IEnumerable
Результат bool
        public bool RemovePartyCustomAttriuteValue(IEnumerable<PartyCustomAttributeValue> entities)
        {
            Contract.Requires(entities != null);
            Contract.Requires(Contract.ForAll(entities, (PartyCustomAttributeValue e) => e != null));
            Contract.Requires(Contract.ForAll(entities, (PartyCustomAttributeValue e) => e.Id >= 0));
            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository<PartyCustomAttributeValue> repo = uow.GetRepository<PartyCustomAttributeValue>();
                foreach (var entity in entities)
                {
                    var latest = repo.Reload(entity);
                    repo.Delete(entity);
                }
                uow.Commit();
            }
            return (true);
        }

Same methods

PartyManager::RemovePartyCustomAttriuteValue ( PartyCustomAttributeValue partyCustomAttributeValue ) : bool