public bool Delete(IEnumerable<Methodology> entities)
{
Contract.Requires(entities != null);
Contract.Requires(Contract.ForAll(entities, (Methodology e) => e != null));
Contract.Requires(Contract.ForAll(entities, (Methodology e) => e.Id >= 0));
using (IUnitOfWork uow = this.GetUnitOfWork())
{
IRepository<Methodology> repo = uow.GetRepository<Methodology>();
foreach (var entity in entities)
{
var latest = repo.Reload(entity);
//relation to DataContainer is managed by the other end
repo.Delete(latest);
}
uow.Commit();
}
return (true);
}