public ExtendedProperty UpdateExtendedProperty(ExtendedProperty entity)
{
Contract.Requires(entity != null, "provided entity can not be null");
Contract.Requires(entity.Id >= 0, "provided entity must have a permant ID");
Contract.Ensures(Contract.Result<ExtendedProperty>() != null && Contract.Result<ExtendedProperty>().Id >= 0, "No entity is persisted!");
using (IUnitOfWork uow = this.GetUnitOfWork())
{
IRepository<ExtendedProperty> repo = uow.GetRepository<ExtendedProperty>();
repo.Put(entity); // Merge is required here!!!!
uow.Commit();
}
return (entity);
}