Skip to content

Commit ce64993

Browse files
Edit subplot don't work #46
1 parent 66bb57b commit ce64993

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

BExIS.Pmm.Services/GeometryManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ public GeometryX Update(GeometryX entity)
147147
using (IUnitOfWork uow = this.GetUnitOfWork())
148148
{
149149
IRepository<GeometryX> repo = uow.GetRepository<GeometryX>();
150-
repo.Put(entity); // Merge is required here!!!!
150+
repo.Merge(entity);
151+
var merged = repo.Get(entity.Id);
152+
repo.Put(merged);
151153
uow.Commit();
152154
}
153155
return (entity);

0 commit comments

Comments
 (0)