public bool DeleteExtendedProperty(ExtendedProperty entity)
{
Contract.Requires(entity != null);
Contract.Requires(entity.Id >= 0);
using (IUnitOfWork uow = this.GetUnitOfWork())
{
IRepository<ExtendedProperty> repo = uow.GetRepository<ExtendedProperty>();
entity = repo.Reload(entity);
repo.Delete(entity);
uow.Commit();
}
// if any problem was detected during the commit, an exception will be thrown!
return (true);
}